colinScore: Variable Correlation Linear (Mixed) Models

Description Usage Arguments Details Value Examples

View source: R/mbecs_analyses.R

Description

Takes a fitted model and computes maximum correlation between covariates as return value. Return value contains actual correlation-matrix as 'vcor' attribute.

Usage

1
colinScore(model.fit)

Arguments

model.fit

lm() or lmm() output

Details

ToDo: maybe some additional validation steps and more informative output.

Value

Maximum amount of correlation for given model variables.

Examples

1
2
3
4
# This will return the maximum colinearity score in the given model
limimo <- lme4::lmer(dummy.list$cnts[,1] ~ group + (1|batch),
data=dummy.list$meta)
num.max_corr <- colinScore(model.fit=limimo)

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