Create a Summary of a complr
object
Arguments
- object
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")
summary(cilr)
#>
#> composition_parts TST, WAKE, MVPA, LPA, SB
#> logratios ilr1, ilr2, ilr3, ilr4
#> idvar NULL
#> nobs 3540
#> ngrps 266
#> transform_type ilr
#> total 1
#> composition_geometry acomp
#> logratio_class rmult
cilr <- complr(data = mcompd, sbp = sbp,
parts = c("TST", "WAKE", "MVPA", "LPA", "SB"))
summary(cilr)
#> Error in .subset2(x, i, exact = exact): attempt to select less than one element in get1index