stanfit object from the saved CSV files that are
created by Stan or RStan and that include the samples drawn from the
distribution of interest to facilitate analysis of samples using RStan.
A character vector providing CSV file names
The order for array parameters; default to
Stan and RStan could save the samples to CSV files. This function
reads the samples and using the comments (beginning with
to create a
stanfit object. The model name is derived from
the first CSV file.
col_major specifies how array parameters are ordered in each row of
the CSV files. For example, parameter
"a[2,2]" would be ordered as
"a[1,1], a[2,1], a[1,2], a[2,2]" if col_major is
stanfit object (with invalid
stanmodel slot). This
object cannot be used to re-run the sampler.
1 2 3
Loading required package: ggplot2 Loading required package: StanHeaders rstan (Version 2.15.1, packaged: 2017-04-19 05:03:57 UTC, GitRev: 2e1f913d3ca3) For execution on a local, multicore CPU with excess RAM we recommend calling rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.