run_MCMC | R Documentation |
run MCMC algorithm to fit parameters to data
run_MCMC(fit_parnames, nbIteration, randomWalkSD, currentParameter, data)
fit_parnames |
vector of names of parameter(s) to be fitted |
nbIteration |
number of iterations for which to run MCMC |
randomWalkSD |
vector containing standard deviations of proposal distributions for each fitted parameter |
currentParameter |
named vector of parameter values at which to start fitting |
data |
data for fitting, where each row is a cluster |
list with the elements storedParameter: matrix of fitted parameter values for each iteration logLik: log likelihood for each iteration acceptance_rate: proportion of proposed values that were accepted, for each fitted parameter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.