Variance of compositions presented in a complr
object.
Usage
var.complr(x, weight = c("equal", "proportional"), ...)
Arguments
- x
An object of class
complr
.- weight
A character value specifying the weight to use in calculation of the reference composition. If
"equal"
, give equal weight to units (e.g., individuals). If"proportional"
, weights in proportion to the frequencies of units being averaged (e.g., observations across individuals) Default isequal
.- ...
generic argument, not in use.
Examples
cilr <- complr(data = mcompd, sbp = sbp,
parts = c("TST", "WAKE", "MVPA", "LPA", "SB"),
idvar = "ID")
var.complr(cilr)
#> $comp
#> TST WAKE MVPA LPA SB
#> TST 0.0000000 0.4980989 0.6778474 0.1909000 0.5203981
#> WAKE 0.4980989 0.0000000 1.1463568 0.5898044 1.0467771
#> MVPA 0.6778474 1.1463568 0.0000000 0.6175262 1.5340328
#> LPA 0.1909000 0.5898044 0.6175262 0.0000000 0.6335283
#> SB 0.5203981 1.0467771 1.5340328 0.6335283 0.0000000
#>
#> $between_comp
#> bTST bWAKE bMVPA bLPA bSB
#> bTST 0.00000000 0.2414272 0.2151267 0.06580703 0.1724031
#> bWAKE 0.24142719 0.0000000 0.4691787 0.27169303 0.4901455
#> bMVPA 0.21512670 0.4691787 0.0000000 0.20059492 0.4367313
#> bLPA 0.06580703 0.2716930 0.2005949 0.00000000 0.2198574
#> bSB 0.17240306 0.4901455 0.4367313 0.21985738 0.0000000
#>
#> $within_comp
#> wTST wWAKE wMVPA wLPA wSB
#> wTST 0.0000000 0.2586842 0.4830112 0.1370678 0.3806805
#> wWAKE 0.2586842 0.0000000 0.6682370 0.3236164 0.5936233
#> wMVPA 0.4830112 0.6682370 0.0000000 0.4469771 1.0507794
#> wLPA 0.1370678 0.3236164 0.4469771 0.0000000 0.4636737
#> wSB 0.3806805 0.5936233 1.0507794 0.4636737 0.0000000
#>