mbecVarianceStatsLMM: Model Variable Variance Extraction from LMM

Description Usage Arguments Details Value

View source: R/mbecs_analyses.R

Description

For a Linear Mixed Model, this function extracts the proportion of variance that can be explained by terms and interactions and returns a named row-vector.

Usage

1

Arguments

model.fit

A linear mixed model object of class 'lmerMod'.

Details

Linear Mixed Model: employ helper function 'mbecMixedVariance' to extract residuals, random effects and fixed effects components from the model. The components are then transformed to reflect explained proportions of variance for the model coefficients. The function implements transformation for varying coefficients as well, but NO ADJUSTMENT for single or multiple coefficients at this point.

Value

A named row-vector, containing proportional variance for model terms.


buschlab/MBECS documentation built on Jan. 21, 2022, 1:27 a.m.