fit2model {autoReg}R Documentation

Restore fit model data containing AsIs expressions

Description

Restore fit model data containing AsIs expressions

Usage

fit2model(fit)

Arguments

fit

An object of class "lm", "glm" or "coxph"

Value

An object of class "data.frame"

Examples

require(survival)
pbc$status2=ifelse(pbc$status==2,1,0)
fit=coxph(Surv(time,status2)~age+log(bili),data=pbc)
fit2model(fit)

[Package autoReg version 0.3.3 Index]