lotR_example_data | R Documentation |
Simulated data for testing the lcm_tree()
function.
Used in the example.
lotR_example_data
A named list with the following elements:
A matrix with n=1000 rows and J=18 columns.
Z_obs
A 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.
A character vector of length n=1000.
curr_leaves[i]
indicates which leaf does observation i
belong to.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.