summary.wasp: Posterior summaries for the Wasserstein barycenter of subset...

View source: R/classfunctions.R

summary.waspR Documentation

Posterior summaries for the Wasserstein barycenter of subset posteriors

Description

Outputs and prints posterior summary statistics (mean, mode, sd, 95 Posterior Density interval)

Usage

## S3 method for class 'wasp'
summary(x)

Arguments

x

a wasp object obtained from the function wasp().

Value

Posterior summary statistics (mean, mode, sd, 95 all the Wasserstein barycenter of subset posteriors of all parameters in the model.

Examples

library(waspr)
out <- wasp(pois_logistic,
            par.names = c("beta_s", "alpha_l", "beta_l",
                          "baseline_sigma", "baseline_mu",
                          "correlation", "sigma_s", "sigma_l"))
summary(out)


waspr documentation built on Sept. 11, 2023, 5:10 p.m.