View source: R/posteriorPredictiveDensity.R
posteriorPredictiveDensity | R Documentation |
Return the density for y taking a certain value given the DGP. Requires
output from a posteriorPredictiveMAP()
object and the outcome value y
at which
the density is measured.
posteriorPredictiveDensity(y, ppmap)
y |
the value taken by the new output |
ppmap |
A |
the density of the posterior predictive distribution of the outcome taking value y
df <- dgenRbinom() postPredMAP <- posteriorPredictiveMAP(df$Y, df$D, d=0, sigma0=1, lambda=1) posteriorPredictiveDensity(y=1, postPredMAP)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.