R/extract_prediction.R
extract_prediction.Rd
Unnest the predicted values of a given statistic from the simulated data
extract_prediction(data, stat)
Data frame object containing columns with values of parameters sampled from the posterior, then a column "summary" containing a name of a summary statistic computed for each combination of parameters, column "stat" containing the exact summary statistic computed (useful in case multiple values of the summary statistic computed by a tree-sequence function), and a column "value" containing its value.