surv-correlated-method: Survival method for correlated phase-type frailty models

surv,correlated-methodR Documentation

Survival method for correlated phase-type frailty models

Description

Survival method for correlated phase-type frailty models

Usage

## S4 method for signature 'correlated'
surv(x, q, X = numeric(0))

Arguments

x

An object of class correlated.

q

A matrix of locations.

X

A matrix of covariates.

Value

A vector containing the joint survival evaluations at the given locations.

Examples

bivph_obj <- bivphasetype(dimensions = c(3, 3))
cobj <- correlated(bivph_obj, bhaz1 = "weibull", bhaz_pars1 = 3, bhaz2 = "weibull", bhaz_pars2 = 2)
surv(cobj, matrix(c(1, 2), ncol = 2))

jorgeyslas/phfrailty documentation built on April 17, 2025, 4:11 p.m.