print.summary.evpost: Print method for objects of class "summary.evpost"

View source: R/sample_diagnostics.R

print.summary.evpostR Documentation

Print method for objects of class "summary.evpost"

Description

print method for an object object of class "summary.evpost".

Usage

## S3 method for class 'summary.evpost'
print(x, ...)

Arguments

x

An object of class "summary.evpost", a result of a call to summary.evpost.

...

Additional arguments passed on to print.

Value

Prints

  • information about the ratio-of-uniforms bounding box, i.e. object$box

  • an estimate of the probability of acceptance, i.e. object$pa

  • a summary of the simulated values, via summary(object$sim_vals)

See Also

ru or ru_rcpp for descriptions of object$sim_vals and $box.

plot.evpost for a diagnostic plot.

Examples

# GP posterior
u <- stats::quantile(gom, probs = 0.65)
fp <- set_prior(prior = "flat", model = "gp", min_xi = -1)
gpg <- rpost_rcpp(n = 1000, model = "gp", prior = fp, thresh = u,
                  data = gom)
summary(gpg)

revdbayes documentation built on Sept. 10, 2023, 1:07 a.m.