bivph_density: Bivariate phase-type joint density

View source: R/RcppExports.R

bivph_densityR Documentation

Bivariate phase-type joint density

Description

Bivariate phase-type joint density

Usage

bivph_density(x, alpha, S11, S12, S22)

Arguments

x

Matrix of values.

alpha

Vector of initial probabilities.

S11

Sub-intensity matrix.

S12

Matrix.

S22

Sub-intensity matrix.

Value

Joint density at x.

Examples

alpha <- c(0.15, 0.85)
S11 <- matrix(c(c(-2, 9), c(0, -11)), nrow = 2, ncol = 2)
S12 <- matrix(c(c(2, 0), c(0, 2)), nrow = 2, ncol = 2)
S22 <- matrix(c(c(-1, 0), c(0.5, -5)), nrow = 2, ncol = 2)
x <- matrix(c(c(0.5, 1), c(2, 1.5)), ncol = 2)
bivph_density(x, alpha, S11, S12, S22)

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