Demonstrate examples included in Stan
Stan includes a variety of examples and most of the BUGS example models that are translated into Stan modeling language. One example is chosen from a list created from matching user input and gets fitted in the demonstration.
stan_demo(model = character(0), method = c("sampling", "optimizing", "meanfield", "fullrank"), ...)
model |
A character string for model name to specify which model
will be used for demonstration. The default is an empty string, which
prompts the user to select one the available models. If |
method |
Whether to call |
... |
Further arguments passed to |
An S4 object of stanfit
, unless model = 0
, in which case a
character vector of paths to available models is returned.
The Stan Development Team Stan Modeling Language User's Guide and Reference Manual. http://mc-stan.org/.
## Not run: dogsfit <- stan_demo("dogs") # run the dogs model fit1 <- stan_demo(1) # run model_names[1] ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.