publish.survdiff: Alternative summary of survdiff results

Description Usage Arguments Author(s) Examples

Description

Alternative summary of survdiff results

Usage

1
2
## S3 method for class 'survdiff'
publish(object, digits = c(2, 4), print = TRUE, ...)

Arguments

object

Object obtained with survival::survdiff.

digits

Vector with digits for rounding numbers: the second for pvalues, the first for all other numbers.

print

If FALSE do not print results.

...

Not (yet) used.

Author(s)

Thomas A. Gerds <tag@biostat.ku.dk>

Examples

1
2
3
4
5
library(survival)
data(pbc)
sd <- survdiff(Surv(time,status!=0)~sex,data=pbc)
publish(sd)
publish(sd,digits=c(3,2))

Publish documentation built on Jan. 8, 2021, 5:37 p.m.