publish.survdiff: Alternative summary of survdiff results

publish.survdiffR Documentation

Alternative summary of survdiff results

Description

Alternative summary of survdiff results

Usage

## 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

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. 18, 2023, 1:08 a.m.