dens-shared-method: Density method for shared phase-type frailty models

dens,shared-methodR Documentation

Density method for shared phase-type frailty models

Description

Density method for shared phase-type frailty models

Usage

## S4 method for signature 'shared'
dens(x, y, X = numeric(0))

Arguments

x

An object of class shared.

y

A matrix of locations.

X

A matrix of covariates.

Value

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

Examples

ph_obj <- phasetype(structure = "coxian")
shared_obj <- shared(ph_obj, bhaz1 = "weibull", bhaz_pars1 = 3, bhaz2 = "weibull", bhaz_pars2 = 2)
dens(shared_obj, matrix(c(1, 2), ncol = 2))

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