frailty: Constructor function for univariate phase type frailty models

View source: R/2.phfrailty.R

frailtyR Documentation

Constructor function for univariate phase type frailty models

Description

Constructor function for univariate phase type frailty models

Usage

frailty(
  ph = NULL,
  bhaz = NULL,
  bhaz_pars = NULL,
  B = numeric(0),
  alpha = NULL,
  S = NULL,
  structure = NULL,
  dimension = 3
)

Arguments

ph

An object of class phasetype.

bhaz

Baseline hazard function.

bhaz_pars

The parameters of the baseline hazard function.

B

Regression parameters.

alpha

A probability vector.

S

A sub-intensity matrix.

structure

A valid phase-type structure.

dimension

The dimension of the phase-type structure (if provided).

Value

An object of class frailty.

Examples

frailty(phasetype(structure = "coxian", dimension = 4), bhaz = "weibull", bhaz_pars = 3)

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