Skip to contents

A wrapper around bayesplot::ppc_dens_overlay and other PPC functions for because model objects.

Usage

# S3 method for class 'because'
pp_check(
  object,
  resp = NULL,
  type = "dens_overlay",
  ndraws = 50,
  trim = TRUE,
  ...
)

Arguments

object

A because fit object.

resp

Character string; the response variable to check. If NULL, takes the first response.

type

Character string; the type of PPC plot to generate. Supported: "dens_overlay", "hist", "stat".

ndraws

Integer; number of posterior draws to use. Defaults to 50.

...

Additional arguments passed to bayesplot functions.

Value

A ggplot object produced by bayesplot.