| extract_samples {EpiNow2} | R Documentation |
Extract all samples from a stan fit
Description
If the object argument is a <stanfit> object, it simply returns the
result of rstan::extract(). If it is a <CmdStanMCMC> it returns samples
in the same format as rstan::extract() does for <stanfit> objects.
Usage
extract_samples(stan_fit, pars = NULL, include = TRUE)
Arguments
stan_fit |
A |
pars |
Any selection of parameters to extract |
include |
whether the parameters specified in |
Value
List of data.tables with samples
[Package EpiNow2 version 1.5.2 Index]