predict.slcafit | R Documentation |
slca
ObjectProvides predicted class memberships or posterior probabilities for new data based on a fitted slca
model.
## S3 method for class 'slcafit'
predict(object, newdata, type = c("class", "posterior"), ...)
object |
An object of class |
newdata |
A |
type |
A character string indicating the type of prediction. Use |
... |
Additional arguments passed to other methods. |
A data.frame
or list
depending on the type
:
For type = "class"
, a data.frame
is returned where rows represent observations and columns correspond to latent class variables.
For type = "posterior"
, a list
is returned containing data.frame
s with posterior probabilities for each latent class variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.