create_lm_output_table: This function is designed to extract the key information from...

View source: R/create_lm_output_table.R

create_lm_output_tableR 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.

Description

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.

Usage

create_lm_output_table(mod_lm, dat)

Arguments

dat

This is the dataframe used in fitting the lm object.

mod_glm

This is an object of class 'lm'.

Examples

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)


UKBiostatCIRCL/UK-Biostat-CIRCL documentation built on June 30, 2022, 4:42 a.m.