Learn R Programming

fido (version 1.0.4)

ppc.pibblefit: Visualization of Posterior Predictive Check of fit model

Description

Visualization of Posterior Predictive Check of fit model

Usage

# S3 method for pibblefit
ppc(m, ...)

Value

ggplot object

Arguments

m

an object of class pibblefit

...

other options passed to ppc (see details)

Details

ppc.pibblefit accepts the following additional arguments:

  • "type" type of plot (options "lines", "points", "bounds")

  • "iter" number of samples from posterior predictive distribution to plot (currently must be <= m$iter) if type=="lines" default is 50, if type=="ribbon" default is to use all available iterations.

  • "from_scratch" should predictions of Y come from fitted Eta or from predictions of Eta from posterior of Lambda? (default: false)

Examples

Run this code
sim <- pibble_sim()
fit <- pibble(sim$Y, sim$X)
ppc(fit)

Run the code above in your browser using DataLab