cox2.display: cox2.display: table for coxph.object with model option: TRUE...

View source: R/cox2.R

cox2.displayR Documentation

cox2.display: table for coxph.object with model option: TRUE - allow "frailty" or "cluster" model

Description

Table for coxph.object with model option: TRUE - allow "frailty" or "cluster" model

Usage

cox2.display(cox.obj.withmodel, dec = 2, msm = NULL)

Arguments

cox.obj.withmodel

coxph.object with model option: TRUE

dec

Decimal point, Default: 2

msm

Multi state model, Default: NULL

Details

GEE like - cluster, Mixed effect model like - frailty

Value

Table, cluster/frailty info, metrics, caption

Examples

library(survival)
data(lung)
fit1 <- coxph(Surv(time, status) ~ ph.ecog + age + cluster(inst), data = lung, model = TRUE)
fit2 <- coxph(Surv(time, status) ~ ph.ecog + age + frailty(inst), data = lung, model = TRUE)
cox2.display(fit1)
cox2.display(fit2)

jstable documentation built on Oct. 20, 2024, 5:07 p.m.