Similar to other predict methods, this function returns predictions from a fitted htlrfit
object.
# S3 method for htlr.fit
predict(object, newx, type = c("response", "class"), ...)
The object returned depends on type.
A fitted model object with S3 class htlrfit
.
A Matrix of values at which predictions are to be made.
Type of prediction required. Type "response" gives the fitted probabilities. Type "class" produces the class label corresponding to the maximum probability.
Advanced options to specify the Markov chain iterations used for inference.
See htlr_predict
.