Learn R Programming

psycho (version 0.4.91)

get_formula: Get formula of models.

Description

Get formula of models. Implemented for:

  • analyze.merModLmerTest

  • analyze.glmerMod

  • analyze.lm

  • analyze.glm

  • analyze.stanreg

Usage

get_formula(x, ...)

Arguments

x

Object.

...

Arguments passed to or from other methods.

Examples

Run this code
# NOT RUN {
library(psycho)
library(lme4)

fit <- lme4::glmer(vs ~ wt + (1 | gear), data = mtcars, family = "binomial")
fit <- lm(hp ~ wt, data = mtcars)

get_formula(fit)
# }

Run the code above in your browser using DataLab