gee_stepper: Stepwise GEE Model Selection

Description Usage Arguments Value Examples

Description

Starting with a model of y ~ 1, use a forward/backward step selection process to find the preferable fit.

Usage

1
gee_stepper(fit, upper)

Arguments

fit

a geeglm object. the response, id, data, corstr, ... will be reused in all the the fits called by gee_stepper

upper

A formula with the rhs containing all the variables that *could* be the the model.

Value

the "best" model based on QIC from the stepwise selection process.

Examples

1
2
3
4
5
data(pride)
library(geepack)
geefit <- geepack::geeglm(PCR_RSV ~ SEX + RSVINF + REGION + AGE + ELTATOP + EINZ + EXT, 
                  id = REGION, data = pride, family = stats::binomial())
gee_stepper(geefit, formula(geefit))

dewittpe/pstools documentation built on May 15, 2019, 5:07 a.m.