stepwise: Perform a stepwise logistic or linear regression using LRT...

View source: R/stepwise.R

stepwiseR Documentation

Perform a stepwise logistic or linear regression using LRT tests of significance.

Description

Copied and edited from: https://msu.edu/~rubin/code/stepwise_demo.nb.html

Usage

stepwise(
  out_var,
  ind_var,
  pe = 0.01,
  pr = 0.05,
  data = NULL,
  model = "logistic"
)

Arguments

out_var

the outcome variable

ind_var

the independent variables to consider

pe

the significance level above which a variable may enter the model

pr

the significance level below which a variable may be deleted from the model

data

the data frame to use

model

the model that needs to be performed ("logistic" or "linear")

Value

the final model


farhadsalimi/registryr documentation built on June 24, 2022, 12:23 a.m.