search for: afterdesign

Displaying 1 result from an estimated 1 matches for "afterdesign".

2006 Mar 16
2
Surv object in data.frame and Design package
...ptime, event) df.nodesign <- data.frame(survobj, ie.status) # build df without loading Design df.nodesign library(Design) df.design <- data.frame(survobj, ie.status) # build df after loading Design df.design all.equal(df.nodesign, df.design) detach(package:Design) detach(package:survival) df.afterdesign <- data.frame(survobj, ie.status) # building df after detaching Design df.afterdesign library(survival) rm(survobj, ie.status) coxph(survobj~ie.status, data=df.nodesign) # works coxph(survobj~ie.status, data=df.design) # doesn't works coxph(survobj~ie.status, data=df.afterdesign) # doesn'...