View source: R/print_model_params_p.R
print_model_params_p | R Documentation |
This function takes a model object and a predictor, and prints the output in parenthesis. Includes confidence intervals, stat type and p-values.
print_model_params_p(model, predictor, latex = TRUE)
model |
A model object |
predictor |
(character) The effect (fixed/random) you want to report |
latex |
(Logical) If true, output is appropriate for LaTeX. Otherwise formatting is for markdown. |
library(lme4)
library(lmerTest)
mod1 <- lm(mpg ~ wt, data = mtcars)
mod2 <- lmer(Reaction ~ 1 + Days + (1|Subject), data = sleepstudy,
REML = FALSE)
print_model_params_p(model = mod1, predictor = "wt", latex = FALSE)
print_model_params_p(model = mod2, predictor = "Days")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.