| predict.lcm_tree | R Documentation | 
approximate predictive class probabilities for a new observation in a leaf
## S3 method for class 'lcm_tree' predict(object, dat_pred = NULL, leaf_ids = NULL, collapsed = TRUE, ...)
| object | An  | 
| dat_pred | a binary matrix with rows for observations and columns for features (of the same dimension as in the training data) | 
| leaf_ids | a vector of character strings, each being the name of the leaf name for that observation | 
| collapsed | default to  | 
| ... | Other parameters | 
a matrix with the same number of rows as dat_pred and
K columns (K is the number of latent classes);
each row correspond to a vector of predicted probabilities of
an observation in each class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.