Skip to contents

Convenience function to simplify extracting posterior means or single parameters from stanfit objects.

Usage

stan_mean(object, pars)

Arguments

object

A fitted salmonIPMfit object.

pars

Character vector with the names of parameters to summarize.

Value

A scalar or vector of means of the posterior distribution of pars.