moment-phasetype-method: Moment method for phase-type distributions

moment,phasetype-methodR Documentation

Moment method for phase-type distributions

Description

Moment method for phase-type distributions

Moment method for phase-type distributions

Usage

## S4 method for signature 'phasetype'
moment(x, k = 1)

## S4 method for signature 'phasetype'
moment(x, k = 1)

Arguments

x

An object of class phasetype.

k

A vector of integers

Value

The raw moment of the phasetype (or underlying phasetype) object.

The kth moment of the phase-type distribution

Examples

set.seed(123)
obj <- phasetype(structure = "general", dimension = 3)
moment(obj, 2)
obj <- phasetype(structure = "general")
moment(obj, 1)

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