create_coef_table: Create Table of Coefficients for VADIS analysis

View source: R/create_coef_table.R

create_coef_tableR Documentation

Create Table of Coefficients for VADIS analysis

Description

Create Table of Coefficients for VADIS analysis

Usage

create_coef_table(mod_list)

Arguments

mod_list

A list of regression model objects.

path

Path in which to save the output (as .csv file). If NULL, defaults to the current working directory. Set path = FALSE if you do not wish to save to file.

Details

The function loops through a list of model objects, extracts the coefficient estimates, and compiles them in a single dataframe.

Value

A dataframe

Author(s)

Jason Grafmiller

Examples

## Not run: 
lm_fnc <- function(x) lm(Sepal.Length ~ Petal.Length + Petal.Width, data = x)
rm_list <- fit.vadis.RM(iris, split.by = "Species", fit.func = lm_fnc,
  path = FALSE)
summary(rm_list[[1]])

create_coef_table(rm_list, path = FALSE)

## End(Not run)

jasongraf1/VADIS documentation built on July 19, 2023, 10:26 p.m.