Learn R Programming

fido (version 1.0.4)

predict: Predict response from new data

Description

Predict response from new data

Usage

predict(object, ...)

Value

(if summary==FALSE) array D x N x iter; (if summary==TRUE) tibble with calculated posterior summaries

Arguments

object

An object of class pibblefit

...

Other objects to be passed to the `predict` function

Examples

Run this code
sim <- pibble_sim()
fit <- pibble(sim$Y, sim$X)
predict(fit)[,,1:2] # just show 2 samples

Run the code above in your browser using DataLab