powered by
Provided for Random Walk Metropolis algorithm
qprop(theta1, nu)
Vector of current quantiles
Either a single numeric value for the covariance matrix, or a vector for the diagonal
Returns a single numeric simulated value from a Normal distribution or vector of length theta1. length(mu) matrix with one sample in each row.
theta1
length(mu)
B. D. Ripley (1987) Stochastic Simulation. Wiley. Page 98
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
# NOT RUN { s <- replicate(1000, qprop(0, 1)) summary(s) hist(s, col='light blue') # }
Run the code above in your browser using DataLab