Learn R Programming

multilevelcoda (version 1.3.1)

build.sbp: Build Sequential Binary Partition

Description

Build a default sequential binary partition for complr object. The default sequential binary partition is a pivot balance that allows the effect of this first balance coordinate to be interpreted as the change in the prediction for the dependent variable when that given part increases while all remaining parts decrease by a common proportion.

Usage

build.sbp(parts)

Value

A matrix sequential binary partition.

Arguments

parts

A character vector specifying the names of compositional variables to be used.

Examples

Run this code
sbp1 <- build.sbp(parts = c("TST", "WAKE", "MVPA", "LPA", "SB"))
print(sbp1)

sbp2 <- build.sbp(c("WAKE", "MVPA", "LPA", "SB"))
print(sbp2)

Run the code above in your browser using DataLab