sim-frailty-method: Simulation method for univariate phase type frailty models

sim,frailty-methodR Documentation

Simulation method for univariate phase type frailty models

Description

Simulation method for univariate phase type frailty models

Usage

## S4 method for signature 'frailty'
sim(x, n = 1000)

Arguments

x

An object of class frailty.

n

An integer of length of realization.

Value

A realization of independent and identically distributed phase-type frailty variables.

Examples

obj <- frailty(phasetype(structure = "general"), bhaz = "weibull", bhaz_pars = 2)
sim(obj, n = 100)

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