outname_fit: Extracts the dependent variable name from glm, lm, or mer...

View source: R/stepdown.R

outname_fitR Documentation

Extracts the dependent variable name from glm, lm, or mer model

Description

Extracts the dependent variable name from glm, lm, or mer model

Usage

outname_fit(fit)

Arguments

fit

A fitted model object of class glm, lm, or *merMod

Value

A string with the name of the dependent variable from the model

Examples

out <- twoarm_sim()
data <- out[[1]]
fit1 <- lme4::glmer(y1 ~ treat + (1|cl) ,
                    data=data,
                    family="poisson")
outname_fit(fit1)

crctStepdown documentation built on Sept. 14, 2023, 5:06 p.m.