Description Usage Arguments Value
Adds columns to dataframe containing model data
1 | addStanPred(model, data, sim, q1 = 0.1, q2 = 0.9)
|
model |
a Stan fit obtained with rstan::stan() |
data |
dataframe with data used by the Stan model |
sim |
character with simulated data from Stan model in Generated Quantities |
q1 |
low value for quantiles |
q2 |
high value for quantiles |
adds 4 columns to data : pred mean, pred.median, predq10 and q90
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.