R/extract_prediction.R
extract_prediction.Rd
Unnest the predicted values of a given statistic from the simulated data
extract_prediction(data, stat = NULL)
Data with posterior simulations performed via predict.demografr_abc_sims
Which tree-sequence summary statistic to extract? If NULL
, all summary
statistics will be returned.
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.