| nc | R Documentation |
Add number censored.
nc(x, ...) ## S3 method for class 'ten' nc(x, ...) ## S3 method for class 'stratTen' nc(x, ...)
x |
An object of class |
... |
Additional arguments (not implemented). |
The original object, with new column(s) added indicating the
number censored at each time point, depending on attr(x, "shape"):
"long" |
the new column, |
"wide" |
new columns, beginning with |
A stratTen object has each ten element in the
list modified as above.
data("kidney", package="KMsurv")
t1 <- ten(survfit(Surv(time, delta) ~ type, data=kidney))
nc(t1)
nc(asWide(t1))
## stratified model
data("pbc", package="survival")
t1 <- ten(coxph(Surv(time, status==2) ~ log(bili) + age + strata(edema), data=pbc))
nc(t1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.