shared: Constructor function for shared phase-type frailty models

View source: R/3.sharedph.R

sharedR Documentation

Constructor function for shared phase-type frailty models

Description

Constructor function for shared phase-type frailty models

Usage

shared(
  ph = NULL,
  bhaz1 = NULL,
  bhaz_pars1 = NULL,
  bhaz2 = NULL,
  bhaz_pars2 = NULL,
  B = numeric(0),
  alpha = NULL,
  S = NULL,
  structure = NULL,
  dimension = 3
)

Arguments

ph

An object of class phasetype.

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.

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 shared.

Examples

obj <- phasetype(structure = "coxian")
shared(obj, bhaz1 = "weibull", bhaz_pars1 = 3, bhaz2 = "weibull", bhaz_pars2 = 2)

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