extract1: Extract a Single Parameter From a Stanfit Object

Description Usage Arguments Value

View source: R/extract1.R

Description

Wrapper for rstan::extract() making it less cumbersome to extract a single parameter.

Usage

1
extract1(object, par, ...)

Arguments

object

An object of class stanfit.

par

Character string providing the parameter (or other quantity) name of interest.

...

Additional arguments to be passed to rstan::extract().

Value

When permuted = TRUE (the default), this function returns an array representing samples for par with all chains merged together.


ebuhle/SEMPSM documentation built on Aug. 8, 2020, 4:05 a.m.