Description Usage Arguments Value
Takes data and Stan code created by makeStanmodel and compiles and/or runs the model using Stan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
model |
A StanNetModel created by running makeStanmodel |
pars |
A vector of the character strings giving names of parameters of interest. Default is relative treatment effects, and sigma if a random effects model is used |
DIC |
Logical indicating if quantities required for calculating DIC will be monitored in MCMC sampling. Default is |
n.iter |
Gives the total number of iterations to run the MCMC chains. Default is 5000. |
n.warmup |
Gives the number of warmup/burn-in iterations for the MCMC chains. Default is half of |
thin |
The period for saving samples. Default is 1 (samples will be saved for each MCMC sample). |
n.chains |
The number of different MCMC chains to run. Default is 4. |
inits |
Named lists of initial values for the MCMC chains. Default "random" which uses random values |
compilation |
Logical indicating if compilation is needed, default is |
run |
Logical indicating if the model should be run or not. Default is |
verbose |
Logical indicating if Stan should print intermediate output while running the model. Default is TRUE and warnings and output will be printed |
comp.model |
Optional argument supplying a previously compiled Stan model to be run if |
testing |
Logical if the sampling should be done using the "Fixed_param" algorithm and single iterations in Stan, default is FALSE. Can be set to true for the purposes of testing the logposterior |
A StanNetRun object, containing the following elements: fit - The stanfit object resulting from MCMC sampling model - The StanNetModel object comp.model - The compiled Stan model scale, family, link, effects - The scale, family, link, and type of effects from the StanNetModel trt.key - A key indicating the reference treatment and indexing the other treatments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.