expand_q_matrix: Function to expand an existing q_matrix to a number of...

View source: R/secsse_prep.R

expand_q_matrixR Documentation

Function to expand an existing q_matrix to a number of concealed states

Description

Function to expand an existing q_matrix to a number of concealed states

Usage

expand_q_matrix(q_matrix, num_concealed_states, diff.conceal = FALSE)

Arguments

q_matrix

q_matrix with only transitions between observed states.

num_concealed_states

number of concealed states, generally equivalent to the number of examined states in the dataset.

diff.conceal

Boolean stating if the concealed states should be different. E.g. that the transition rates for the concealed states are different from the transition rates for the examined states. Normally it should be FALSE in order to avoid having a huge number of parameters.

Value

updated q matrix

Note

This is highly similar to q_doubletrans().


secsse documentation built on June 22, 2024, 11:35 a.m.