fit2model: Restore fit model data containing AsIs expressions

View source: R/fit2model.R

fit2modelR 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)

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.