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

sim,shared-methodR Documentation

Simulation method for shared phase-type frailty models

Description

Simulation method for shared phase-type frailty models

Usage

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

Arguments

x

An object of class shared.

n

An integer of length of realization.

Value

A realization of independent and identically distributed shared phase-type frailty random vectors.

Examples

ph_obj <- phasetype(structure = "coxian")
shared_obj <- shared(ph_obj, bhaz1 = "weibull", bhaz_pars1 = 3, bhaz2 = "weibull", bhaz_pars2 = 2)
sim(shared_obj, n = 100)

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