View source: R/publish.riskRegression.R
publish.riskRegression | R Documentation |
Preparing a publishable table from riskRegression results
## S3 method for class 'riskRegression' publish(object, digits = c(2, 4), print = TRUE, ...)
object |
object of class riskRegression as obtained with functions ARR and LRR. |
digits |
Number of digits for regression coefficients |
print |
If |
... |
passed to |
Table with regression coefficients, confidence intervals and p-values
Thomas A. Gerds <tag@biostat.ku.dk>
ARR LRR
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)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.