ph_laplace_der_nocons: Derivative of order n of the Laplace transform of a...

View source: R/RcppExports.R

ph_laplace_der_noconsR Documentation

Derivative of order n of the Laplace transform of a phase-type distribution without the multiplying constant

Description

Computes the derivative of order n (without the multiplying constant) of the Laplace transform at r of a phase-type distribution with parameters alpha and S.

Usage

ph_laplace_der_nocons(r, n, alpha, S)

Arguments

r

Vector of real values.

n

An integer.

alpha

Vector of initial probabilities.

S

Sub-intensity matrix.

Value

Laplace transform at r.

Examples

alpha <- c(0.5, 0.3, 0.2)
S <- matrix(c(c(-1, 0, 0), c(1, -2, 0),c(0, 1, -5)), nrow = 3, ncol = 3)
ph_laplace_der_nocons(0.5, 2, alpha, S)

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