lmer_extract: lmer_extract get (t, chisq, p) values from a single variable...

View source: R/lmer_extract.R

lmer_extractR Documentation

lmer_extract get (t, chisq, p) values from a single variable in a model ONLY USE WHERE FACTOR has more than two levels – chisq will report without any factor instead of without the specified factor

Description

lmer_extract get (t, chisq, p) values from a single variable in a model ONLY USE WHERE FACTOR has more than two levels – chisq will report without any factor instead of without the specified factor

Usage

lmer_extract(model, varname, factorname = NULL)

Arguments

model

is a lm model

varname

is the variable of interest (string). ie. rowname in car::Anova to extract Chisq and Pr>Chisq

factorname

is optional. factor of var (string) as named by summary(model), e.g. 'Female01female'. ie. rowname in summary to extract tvalue

Examples

  m <- lme4::lmer(uptake ~ conc + Type + (1 | Treatment), CO2)
  lmer_extract(m, "conc")
  lmer_extract(m, "Type", "TypeMississippi")

LabNeuroCogDevel/LNCDR documentation built on July 13, 2024, 10:02 a.m.