as_sims: Coerce to a sims object

Description Usage Arguments

View source: R/sims.R

Description

Converts posterior simulations and fitted models to a sims object, a list of simulation arrays.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## S3 method for class 'stanfit'
as_sims(x, sims_major = NULL, vars = NULL, ...)

## S3 method for class 'jagslist'
as_sims(x, ...)

## S3 method for class 'mcmc.list'
as_sims(x, ...)

as_sims(x, ...)

## S3 method for class 'sims'
as_sims(x, ...)

## S3 method for class 'list'
as_sims(x, sims_major, ...)

is_sims(x)

## S3 method for class 'sims'
n_sims(x)

Arguments

x

An object to convert.

sims_major

When converting a list of arrays to a sims object, this indicates whether your arrays are stored in simulation-major order.

...

Further arguments passed to coercion functions.


lionel-/gsim documentation built on May 21, 2019, 6:41 a.m.