Displaying 1 result from an estimated 1 matches for "nodesign".
Did you mean:
codesign
2006 Mar 16
2
Surv object in data.frame and Design package
...ter detaching a package as before
loading it?
Comments?
Thanks
Heinz T?chler
## example
starttime <- c(0, 0, 1.5, 0, 2.5)
stoptime <- c(1, 1.5, 2, 2.5, 3)
event <- c(1, 0, 1, 0, 0)
ie.status <- c(0, 0, 1, 0, 1)
library(survival)
survobj <- Surv(starttime, stoptime, 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.fr...