back_select: Backwards selcection of linear regression model

Description Usage Arguments Value

View source: R/regress_select.R

Description

Performs backwards selection of model parameters. Removes parameter with greatest p-value above "prem" threshold. P-values are calculated using Ordinary Least Squares (no weighting option).

Usage

1
back_select(formula, data, prem = 0.1)

Arguments

formula

Model formula using specified columns of DataFrame 'data'. Can include interactions and select no intercept with -1.

data

Dataframe from which model variables are pulled.

prem

Threshold at which a parameter will be removed from the model if it has the highest p-value above the threshold. The default value is .1.

Value

Dataframe of coefficients, estimate standard errors, test statistics, and p-values for parameters remaining in the model following backwards selection.


EvanWie/regNselect documentation built on Nov. 20, 2019, 12:02 a.m.