bnorm.mh | R Documentation |
Metropolis Hasting: Bivariate Normal
bnorm.mh(x0 = c(-5, 5), rho = 0.8, n = 500, FUN)
x0 |
initial states |
rho |
correlation coefficient |
n |
number of generated points MC |
FUN |
dbnorm |
dbnorm = function(x, d) exp(-t(x) %*% d %*% x/2) bnorm.mh(x0=c(-5,5), rho = 0.8, n = 500, FUN = dbnorm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.