initial_state: Initial state of Markov jump process

View source: R/RcppExports.R

initial_stateR Documentation

Initial state of Markov jump process

Description

Given the accumulated values of the initial probabilities Pi and a uniform value u, it returns the initial state of a Markov jump process. This corresponds to the states satisfying cum_alpha_(k-1)<u<cum_alpha_(k).

Usage

initial_state(cum_alpha, u)

Arguments

cum_alpha

A vector.

u

Random value in (0,1).

Value

Initial state of the Markov jump process.


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