simulate_Q: Randomly generate a Q matrix within the identifying...

Description Usage Arguments Value Examples

View source: R/sample_mcmc.R

Description

This function initializes Q (if unknown) for MCMC sampling within identifiability constraints

Usage

1
simulate_Q(M, L, p = 0.1)

Arguments

M

latent state dimension

L

dimension of the binary responses

p

Bernoulli probability of 1 in the Q matrix (except two diagonal matrices)

Value

a binary matrix of dimension M by L

Examples

1
simulate_Q(3,100)

zhenkewu/rewind documentation built on Sept. 9, 2020, 3:40 p.m.