Description Usage Arguments Value References
Return a data frame by resampling the posterior from a stanfit Here we select a parameter, retrieve the all the posterior from the stanfit and then we resample this posterior n times
1 | sample_stanfit(stanfit, par, n = 100)
|
stanfit |
stanfit object |
par |
parameter name |
n |
number of samples |
a dataframe containing the samples of the parameter. Each column is a parameter (in order of the index), each row is a sample
Stan Development Team (2020). RStan: the R interface to Stan. R package version 2.21.2. http://mc-stan.org/.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.