Quickly adapt starting values in MCMC using paste()
Waiting for convergence of MCMC models can take some time, therefore it may be a good idea to use better starting values. Using paste, one can quickly convert any (parameter) vector in the workspace into a R-style vector (with c()).
Here’s a function that takes any vector (for example 1:10) and turns it into c(1,2,3,4,5,6,7,8,9,10). Now it’s easy to quickly adapt starting values in your code.
Well, of course we can do the same with matrices.
To leave a comment
for the author, please follow the link and comment on their blog: joint posterior
offers daily e-mail updates
news and tutorials
on topics such as: visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook