Description Usage Arguments Value
ADVI currently only implemented in cmdStan. This function provides a small
wrapper round cmdStan enabling models to be built from within stan. This
functionality should be eventually incorporated into rstan
itself.
1 2 3 4 |
stan_model_name |
The name of the stan model (i.e. the stan model file name without ".stan"). If ".stan" is found in the model name it is removed. |
data |
A named list of data, identical to what would be passed to |
path_to_stanmodel |
The path (relative or absolute) to the stan model file |
init |
A named list of initial values for parameters. Note that since variational inference
doesn't have chains, this is slightly different from |
path_to_cmdstan |
Relative or absolute path to installation of cmdstan. |
data_file_name |
Name of intermediate file to which data is dumped (optional). |
init_file_name |
Name of intermediate file to which initial values are dumped (optional). |
output_file_name |
Name of output file (optional). |
A data.frame
containing one column for each parameter and a row for each
of the posterior samples (default 1000).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.