/scmreg

Functions to perform SCM in R

Primary LanguageR

scmreg

Perform Stepwise Covariate Modeling (SCM) in R

Installation

# Development
remotes::install_github("certara/scmreg")

Usage

We will be using the MASS::housing dataset to perform a ordered categorical regression using the scm_reg function.

library(scmreg)
library(MASS)

model <- scm_reg(dataset=housing,
                variable='Sat',
                covariate.list = c('Infl','Type','Cont'),
                p_forward=0.01,
                p_backward=0.001,
                test_used = 'AIC',
                regression='ordered-categorical',
                search_direction='forward-backward',
                weights_ordered='Freq',
                max_steps=Inf)
                
tabscm(model)