create_signif_table: Create Table of Significant Effects for VADIS analysis

View source: R/create_signif_table.R

create_signif_tableR Documentation

Create Table of Significant Effects for VADIS analysis

Description

Create Table of Significant Effects for VADIS analysis

Usage

create_signif_table(
  mod_list,
  alpha = 0.05,
  method = c("freq", "pd", "rope", "map")
)

Arguments

mod_list

A list of regression model objects.

method

string indicating which method to use for assessing significance from Bayesian models. See vadis_line1 for details.

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 significance values of the parameter 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)
data_list <- split(iris, list(iris$Species), drop = T)
rm_list <- lapply(data_list, FUN = function(x) glm(Petal.Length ~ ., x))

create_coef_table(rm_list)

## End(Not run)

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