CombineandPattern: Combines three tests and patternizes them

Description Usage Arguments Value

View source: R/EM.R

Description

Combines three tests and patternizes them. Matrix 2 and 3 must be of the same size. Matrix 1 must be an array with the first two dimensions matching those of matrix 2 and 3 and with a third dimension of atleast 2.

Usage

1
2
3
4
5
6
7
8
9
CombineandPattern(
  mat1_pers,
  mat2,
  mat3,
  reduce,
  time_length,
  max2 = 3,
  max3 = 2
)

Arguments

mat1_pers

3 dimensional data array of test 1

mat2

matrix for test 2

mat3

matrix for test 3

reduce

for StateCalculator if true, if the first two tests are negative imputes negative for the third test in Combiner

time_length

Number of observations per individual

max2

number of values the second test can take on

max3

number of values the third test can take on

Value

(list of patternized data and frequency vector)


jordanaron22/PartiallyObservedHMM documentation built on May 21, 2020, 6:49 p.m.