powered by
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.
eesim
glm
format_out(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)
Run the code above in your browser using DataLab