Learn R Programming

Publish (version 2017.10.24)

publish.riskRegression: Publishing results of riskRegression

Description

Preparing a publishable table from riskRegression results

Usage

# S3 method for riskRegression
publish(object, digits = c(2, 4), print = TRUE,
  ...)

Arguments

object

object of class riskRegression as obtained with functions ARR and LRR.

digits

Number of digits for regression coefficients

print

If FALSE do not print the results

...

passed to publish.matrix

Value

Table with regression coefficients, confidence intervals and p-values

See Also

ARR LRR

Examples

Run this code
# NOT RUN {
library(prodlim)
library(riskRegression)
library(lava)
library(survival)
set.seed(20)
d <- SimCompRisk(20)
f <- ARR(Hist(time,event)~X1+X2,data=d,cause=1)
publish(f)
publish(f,digits=c(1,3))
# }

Run the code above in your browser using DataLab