Description Usage Arguments Value Author(s) Examples

This funcntion takes Stan model code, compiles the Stan model, and then runs multiple chains in parallel.

1 2 3 |

`model_code` |
A character string of Stan code |

`standata` |
A data list suitable for Stan for the model given |

`totaliter` |
The total number of iterations for inference. Note that the total number of iterations is automatically distributed across chains. |

`warmup` |
How many warmup iterations should be used? Note
that every chain will use the same number of warmups and these
will be |

`thin` |
The thin used, default to 1 indicating that all samples be saved. |

`chains` |
The number of independent chains to run. |

`cl` |
(optional) The name of a cluster to use to run the chains. If not specified, the function will make a new cluster. |

`cores` |
(optional) If the |

`seeds` |
(optional) A vector of random seeds the same length as the number of independent chains being run, to make results replicable. If missing, random seeds will be generated and stored for reference in the output. |

`modelfit` |
(optional) A compiled Stan model, if available, saves
compiling |

`verbose` |
A logical whether to print verbose output
(defaults to |

`pars` |
Parameter names from Stan to store |

`sample_file` |
The sample file for Stan |

`diagnostic_file` |
The diagnostic file for Stan |

`init` |
A character string (“random”) or a named list of starting values. |

`...` |
Additional arguments, not currently used. |

a named list with three elements, the `results`

,
compiled Stan `model`

, and the random `seeds`

Joshua F. Wiley <[email protected]>

1 | ```
# Make me!
``` |

varian documentation built on May 29, 2017, 7:14 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.