correlated: Constructor function for correlated phase-type frailty models

View source: R/5.correlatedph.R

correlatedR Documentation

Constructor function for correlated phase-type frailty models

Description

Constructor function for correlated phase-type frailty models

Usage

correlated(
  bivph = NULL,
  bhaz1 = NULL,
  bhaz_pars1 = NULL,
  bhaz2 = NULL,
  bhaz_pars2 = NULL,
  B = numeric(0),
  alpha = NULL,
  S11 = NULL,
  S12 = NULL,
  S22 = NULL,
  dimensions = c(3, 3)
)

Arguments

bivph

An object of class bivphasetype.

bhaz1

Baseline hazard function of first marginal.

bhaz_pars1

The parameters of the baseline hazard function of first marginal.

bhaz2

Baseline hazard function of first marginal.

bhaz_pars2

The parameters of the baseline hazard function of first marginal.

B

Regression parameters.

alpha

A probability vector.

S11

A sub-intensity matrix.

S12

A matrix.

S22

A sub-intensity matrix.

dimensions

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

Value

An object of class correlated.

Examples

obj <- bivphasetype(dimensions = c(3, 3))
correlated(obj, bhaz1 = "weibull", bhaz_pars1 = 3, bhaz2 = "weibull", bhaz_pars2 = 2)

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