This function uses MCMC samples from fitted htlrfit
object OR user supplied
regression coefficient to predict the class labels of test cases.
htlr_predict(
X_ts,
fithtlr = NULL,
deltas = NULL,
burn = NULL,
thin = 1,
usedmc = NULL,
rep.legacy = TRUE
)
A matrix of predictive probabilities, with rows for cases, cols for classes.
Matrix of values at which predictions are to be made.
Fitted HTLR model object.
The values of deltas (for example true deltas) used to make prediction;
will override fithtlr
if provided.
burn
of Markov chain (super)iterations will be discarded for prediction,
and only every thin
are used.
Indices of Markov chain iterations used for inference.
If supplied, burn
and thin
will be ignored.
To reproduce (actually incorrect) results in legacy version. See https://github.com/longhaiSK/HTLR/issues/7.