Uses link and sim for a list of map or map2stan model fits to construct Akaike weighted ensemble of predictions.
ensemble( ... , data , n=1e3 , WAIC=TRUE , refresh=0 )map or map2stan models
Optional data to compute predictions over, as in link and sim
Number of samples to draw from posterior for each model
Use WAIC to compute weights. Otherwise tries to use DIC.
Progress update refresh interval. 0 suppresses output.
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.