Learn R Programming

smmR (version 1.0.5)

get.f: Method to get the conditional sojourn time distribution f

Description

Computes the conditional sojourn time distribution \(f(k)\), \(f_{i}(k)\), \(f_{j}(k)\) or \(f_{ij}(k)\).

Usage

get.f(x, k)

Value

A vector, matrix or array giving the value of \(f\) at each time between 1 and k.

Arguments

x

An object of S3 class smmfit or smm.

k

A strictly positive integer giving the time horizon (k must be different from 0 since we assume that there are not instantaneous transitions).