predict.htlr.fit: Make Prediction on New Data

View source: R/predict.R

predict.htlr.fitR Documentation

Make Prediction on New Data

Description

Similar to other predict methods, this function returns predictions from a fitted htlrfit object.

Usage

## S3 method for class 'htlr.fit'
predict(object, newx, type = c("response", "class"), ...)

Arguments

object

A fitted model object with S3 class htlrfit.

newx

A Matrix of values at which predictions are to be made.

type

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.

Value

The object returned depends on type.


HTLR documentation built on Oct. 22, 2022, 5:05 p.m.