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.5024484 0.6926664 0.1919296 0.5194616
#> WAKE 0.5024484 0.0000000 1.1437040 0.5940452 1.0423563
#> MVPA 0.6926664 1.1437040 0.0000000 0.6253969 1.5293591
#> LPA 0.1919296 0.5940452 0.6253969 0.0000000 0.6295438
#> SB 0.5194616 1.0423563 1.5293591 0.6295438 0.0000000
#>
#> $between_comp
#> bTST bWAKE bMVPA bLPA bSB
#> bTST 0.00000000 0.2407008 0.2146939 0.06573977 0.1677550
#> bWAKE 0.24070082 0.0000000 0.4651665 0.27222554 0.4910121
#> bMVPA 0.21469390 0.4651665 0.0000000 0.19850554 0.4266513
#> bLPA 0.06573977 0.2722255 0.1985055 0.00000000 0.2176890
#> bSB 0.16775502 0.4910121 0.4266513 0.21768902 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
#>