predict.baggr {baggr}R Documentation

Predict method for baggr objects

Description

Predict method for baggr objects

Usage

## S3 method for class 'baggr'
predict(object, nsamples, newdata = NULL, allow_new_levels = TRUE, ...)

Arguments

object

model to predict from

nsamples

Number of samples to draw from the posterior. Cannot exceed the number of samples in the fitted model.

newdata

optional, new data to predict observations from

allow_new_levels

whether to allow the model to make predictions about unobserved groups. Without additional group-level information the model will use the unconditional, pooled estimate.

...

other arguments to pass to predict function (currently not used)


[Package baggr version 0.6.4 Index]