predict.slcafit {slca} | R Documentation |
Model Predictions for Estimated slca
Object
Description
Provides predicted class memberships or posterior probabilities for new data based on a fitted slca
model.
Usage
## S3 method for class 'slcafit'
predict(object, newdata, type = c("class", "posterior"), ...)
Arguments
object |
An object of class |
newdata |
A |
type |
A character string indicating the type of prediction. Use |
... |
Additional arguments passed to other methods. |
Value
A data.frame
or list
depending on the type
:
For
type = "class"
, adata.frame
is returned where rows represent observations and columns correspond to latent class variables.For
type = "posterior"
, alist
is returned containingdata.frame
s with posterior probabilities for each latent class variable.