var.complr: Variance of compositions presented in a 'complr' object.

View source: R/complr-methods.R

var.complrR Documentation

Variance of compositions presented in a complr object.

Description

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 is equal.

...

generic argument, not in use.

Examples

cilr <- complr(data = mcompd, sbp = sbp, 
                parts = c("TST", "WAKE", "MVPA", "LPA", "SB"), 
                idvar = "ID")
var.complr(cilr)

florale/multilevelcoda documentation built on May 1, 2024, 10:15 a.m.