Learn R Programming

hierarchicalDS (version 3.0)

post_loss: function to calculate posterior predictive loss given the output object from hierarchicalDS

Description

function to calculate posterior predictive loss given the output object from hierarchicalDS

Usage

post_loss(Out, burnin = 0)

Arguments

Out

Output object from running hierarchicalDS

burnin

Any additional #'s of values from beginning of chain to discard before calculating PPL statistic (default is 0)

Value

A matrix with posterior variance (P), sums of squares (G) for the posterior mean and median predictions (compared to Observations), and total posterior loss (D)