Evaluate posterior predictions from an eDITH run
eval_posterior_eDITH.Rd
Function that evaluates relevant quantities from a posterior sample of the parameters of an eDITH model
Arguments
- x
List as produced by
run_eDITH_BT
.- river
A
river
object generated viaaggregate_river
.- quant
Vector of quantiles.
Value
The output list copies all objects of the input x
list. The following objects are added:
- param_quantile
Selected quantiles (along rows) of the posterior distribution of model parameters.
- p_quantile
Selected quantiles (along rows) of the posterior distribution of production rates.
- C_quantile
Selected quantiles (along rows) of the posterior distribution of eDNA values (concentrations or read numbers).
- probDet_quantile
Selected quantiles (along rows) of the posterior distribution of detection probability.
- param_mean
Mean of the posterior distribution of model parameters.
- p_mean
Mean of the posterior distribution of production rates.
- C_mean
Mean of the posterior distribution of eDNA values (concentrations or read numbers).
- probDet_mean
Mean of the posterior distribution of detection probability.
All of these objects are vectors of length river$AG$nNodes
. However, if a custom likelihood was used
in run_eDITH_BT
, then probDet_quantile
and probDet_mean
are not evaluated, and are
replaced by a vector of zero length.