addStanPred: Adds predictions and quantiles to data from Stan model

Description Usage Arguments Value

View source: R/addStanPred.R

Description

Adds columns to dataframe containing model data

Usage

1
addStanPred(model, data, sim, q1 = 0.1, q2 = 0.9)

Arguments

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

Value

adds 4 columns to data : pred mean, pred.median, predq10 and q90


OlivierGranacher/modelStan documentation built on March 25, 2020, 2:35 a.m.