publish.riskRegression: Publishing results of riskRegression

View source: R/publish.riskRegression.R

publish.riskRegressionR Documentation

Publishing results of riskRegression

Description

Preparing a publishable table from riskRegression results

Usage

## S3 method for class '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

Author(s)

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

See Also

ARR LRR

Examples

if (requireNamespace("riskRegression",quietly=TRUE)){
library(riskRegression)
library(prodlim)
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))
}

Publish documentation built on Jan. 18, 2023, 1:08 a.m.