Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.baggr

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 = T, ...)

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)


baggr

Bayesian Aggregate Treatment Effects

v0.4.0
GPL (>= 3)
Authors
Witold Wiecek [cre, aut], Rachael Meager [aut], Brice Green [ctb] (predict(), loo_compare, many visuals), Trustees of Columbia University [cph] (tools/make_cc.R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.