Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.ppc

As Posterior Predictive Check


Description

This function converts an object of class demonoid.val to an object of class demonoid.ppc.

Usage

as.ppc(x, set=3)

Arguments

x

This is an object of class demonoid.val.

set

This is an integer that indicates which list component is to be used. When set=1, the modeled data set is used. When set=2, the validation data set is used. When set=3, both data sets are used.

Details

After using the Validate function for holdout validation, it is often suggested to perform posterior predictive checks. The as.ppc function converts the output object of Validate, which is an object of class demonoid.val, to an object of class demonoid.ppc. The returned object is the same as if it were created with the predict.demonoid function, rather than the Validate function.

After this conversion, the user may use posterior predictive checks, as usual, with the summary.demonoid.ppc function.

Value

The returned object is an object of class demonoid.ppc.

Author(s)

See Also


LaplacesDemon

Complete Environment for Bayesian Inference

v16.1.4
MIT + file LICENSE
Authors
Byron Hall [aut], Martina Hall [aut], Statisticat, LLC [aut], Eric Brown [ctb], Richard Hermanson [ctb], Emmanuel Charpentier [ctb], Daniel Heck [ctb], Stephane Laurent [ctb], Quentin F. Gronau [ctb], Henrik Singmann [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.