View source: R/sampling_fcts_KMR.R
This function samples a new vector beta via Metropolis Hastings The proposal distribution is a Multivariate Normal centered at the current value of the beta with a diagonal covariance matrix with proposal sdev delta.beta The value of delta.beta can be changed depending on the acceptance rate of the proposed values. during the MCMC algorithm and during burnin
1 | sample.beta(y, h.z, X, beta, p, delta.beta, m.beta, iV)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.