Predict gate probabilities or class membership
Usage
# S3 method for class 'mixqrgate'
predict(object, newdata = NULL, type = c("prob", "class"), tau = NULL, ...)
Arguments
- object
A "mixqrgate" object.
- newdata
Optional data frame (must contain the gating covariates).
- type
"prob" (gate probabilities) or "class" (most likely class).
- tau
Quantile level at which to evaluate the (location-varying) gate;
defaults to the first grid point.
- ...
Unused.
Value
A matrix of gate probabilities (type = "prob") or an integer vector
of class labels (type = "class").