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
sample_stanfit(stanfit, par, n = 100)
stanfit object
parameter name
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/.