meta_ols: All possible subsets of regressions

Description Usage Arguments Details Value See Also Examples

Description

meta_ols returns the coefficients and t-values of all possible regression combinations

Usage

1
meta_ols(formula, fixed = NA, data, k = 4)

Arguments

formula

An R formula

fixed

A vector of strings for variables that do not need to vary (default = NA)

data

The dataframe to be used

k

Number of variables in each regression that vary (default = 4)

Details

This is a functions that provides the regression output of all combinations of k variables. Note that this is not intended to improve predictions, but instead aims to investigate the impact of the inclusion of a specific variable in a regression and as such can even be seen as a meta-analysis looking at the response surface of all individual variables in the dataset.

Value

A list of two dataframes, one with the coefficients and one with t-values of the variables

See Also

lm coef

Examples

1
result <- meta_ols(mpg ~., data = mtcars, k = 4)

Thdegraaff/regrobustsim documentation built on May 9, 2019, 4:27 p.m.