expand: expand

Description Usage Arguments Value

View source: R/expand.R

Description

This function is used to expand the Y(category) to a indicator vector

Usage

1
expand(pri, curr, I, refE)

Arguments

pri

the prior state

curr

the current state

I

a U by U incidence matrix with elements; I(i,j)=1 if state j can be accessed from state i in one step and 0 otherwise

refE

a vector with the reference categories

Value

ry: a indicator vector


wangpeinihao/RRMLRfMC documentation built on June 19, 2021, 12:25 a.m.