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

surv,frailty-methodR Documentation

Survival method for univariate phase type frailty models

Description

Survival method for univariate phase type frailty models

Usage

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

Arguments

x

An object of class frailty.

q

A vector of locations.

X

A matrix of covariates.

Value

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

Examples

obj <- frailty(phasetype(structure = "general"), bhaz = "weibull", bhaz_pars = 2)
surv(obj, c(1, 2, 3))

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