Predict from a mixqr fit
Arguments
- object
A
"mixqr"object.- newdata
Optional data frame. If omitted, the training data are used.
- type
One of
"quantile"(per-component conditional tau-quantiles, ann x mmatrix),"quantile_byclass"(the conditional tau-quantile of each point's most likely component, a vector),"posterior"(responsibilitiesp_ij),"class"(hard labels), or"density"(the component error-density objects).- ...
Unused.
Classifying genuinely new x
"posterior", "class", and "quantile_byclass" require the RESPONSE in
newdata, because component membership is inferred from the residual
densities. This core therefore cannot assign a class to a covariate vector x
alone; covariate-based gating (membership as a function of x) is provided by
the location-varying-gating extension (QMM sub-project 03).