rand_var.part: extract explained variation for each nested level in lmer...

rand_var.partR Documentation

extract explained variation for each nested level in lmer model

Description

extract explained variation for each nested level in lmer model

Usage

rand_var.part(mod)

Arguments

mod

a model results returned by **lme4::lmer**

Details

see https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/1365-2435.13723 for details "We applied a linear mixed model to partition the variance in root traits with a given trait as the dependent factor and only random effects (‘elevation’ (i.e. conspecific plants between elevations) nested in ‘species’ nested in ‘growth form’]. The remaining variance was explained by trait differences between conspecific plants growing in different replicate plots at the same elevation (Albert et al., 2010)."

note that the random terms are ranked in this way: (1|Level3/Level2/Level1). Additionally, the order of these terms do not affect the results.

Value

a dataframe contains explained variation for each level


kun-ecology/ecoloop documentation built on Jan. 9, 2025, 10:20 a.m.