format_out {eesim} | R Documentation |
Formats the output within a modeling function to be used in a call to
eesim
when the model is fit using glm
or something
similar.
format_out(mod)
mod |
A model object from lm, glm, etc. |
Output with the correct values and column names needed for a
modeling function to pass to eesim
.
dat <- data.frame(x=rnorm(1000, 0, 1), outcome = rnorm(1000, 5, 1))
lin_mod <- lm(outcome~x, data=dat)
format_out(lin_mod)