Learn R Programming

rethinking (version 1.50)

ensemble: Simulate an ensemble of posterior predictions

Description

Uses link and sim for a list of map or map2stan model fits to construct Akaike weighted ensemble of predictions.

Usage

ensemble( ... , data , n=1e3 , WAIC=TRUE , refresh=0 )

Arguments

...

map or map2stan models

data

Optional data to compute predictions over, as in link and sim

n

Number of samples to draw from posterior for each model

WAIC

Use WAIC to compute weights. Otherwise tries to use DIC.

refresh

Progress update refresh interval. 0 suppresses output.

Value

Details

This function calls link and sim for each fit model given as input. The results are then combined into ensemble link and simulation output, where samples from each model are represented according the Akaike weights.

See Also

link, sim, compare