q2 {mspath}R Documentation

Allowed Transitions: q2

Description

Matrix of allowed transitions among 5 states.

Format

A 5x5 matrix of 0's and 1's indicating allowed transitions betweeen states. The diagonal is ignored.

Details

This matrix allows only transitions up to the next-highest state. It is appropriate, for example, for progressive diseases in an analysis for which the time step on the path is sufficiently small that transitions across multiple states are not present in a single step.

Source

Made up.

Examples

library(mspath)
data(q2, e2, sim2)
 r <- mspath(fib~time, misc=TRUE, ematrix=e2, qmatrix=q2, inits=rep(.5, 9), subject=id,
             data=sim2, stepnumerator=1, stepdenominator=1, initprobs=c(1.0, 0, 0, 0, 0),
             do.what=0)

[Package mspath version 0.9-9 Index]