fit2model | R Documentation |
Restore fit model data containing AsIs expressions
fit2model(fit)
fit |
An object of class "lm", "glm" or "coxph" |
An object of class "data.frame"
require(survival)
pbc$status2=ifelse(pbc$status==2,1,0)
fit=coxph(Surv(time,status2)~age+log(bili),data=pbc)
fit2model(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.