View source: R/create_lm_output_table.R
create_lm_output_table | R Documentation |
This function is designed to extract the key information from an LM object and compile it into a tidy dataframe for use in R Markdown reports. Information includes coefficient estimates, standard errors, Z statistics, and p-values.
create_lm_output_table(mod_lm, dat)
dat |
This is the dataframe used in fitting the lm object. |
mod_glm |
This is an object of class 'lm'. |
x = rnorm(100, 0, 1) y = 1.2 * x dat = data.frame(x, y) mod_lm = lm(y ~ x, data = dat) lm_output = create_lm_output_table(mod_lm, dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.