lotR_example_data: Simulated multivariate binary data.

lotR_example_dataR Documentation

Simulated multivariate binary data.

Description

Simulated data for testing the lcm_tree() function. Used in the example.

Usage

lotR_example_data

Format

A named list with the following elements:

Y

A matrix with n=1000 rows and J=18 columns.

Z_obsA two column integer matrix. The first column is from 1 to n. The second column is a mix of NA and integers between 1 and K (number of latent classes). NA represents unobserved latent class membership; an integer represent observed latent class. NULL if no observation has observed class membership.

curr_leaves

A character vector of length n=1000. curr_leaves[i] indicates which leaf does observation i belong to.

truth

a list: tau: the class probabilities (a single LCM); theta: the class-specific response probabilities; prop_obs: proportion of subjects with known classes; Z an integer vector of length n=1000, that indicates the true class memberships.


zhenkewu/lotR documentation built on April 24, 2022, 2:36 a.m.