Learn R Programming

waspr (version 1.0.1)

summary.wasp: 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 wasp
summary(x)

Value

Posterior summary statistics (mean, mode, sd, 95

all the Wasserstein barycenter of subset posteriors of all parameters in the model.

Arguments

x

a wasp object obtained from the function wasp().

Examples

Run this code
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)

Run the code above in your browser using DataLab