indepmetrop: Independence Metropolis independence chain of a posterior distribution
Description
Simulates iterates of an independence Metropolis chain with a normal proposal density for an arbitrary real-valued
posterior density defined by the user
Usage
indepmetrop(logpost,proposal,start,m,...)
Value
par
a matrix of simulated values where each row corresponds to a value of the vector parameter
accept
the acceptance rate of the algorithm
Arguments
logpost
function defining the log posterior density
proposal
a list containing mu, an estimated mean and var, an estimated variance-covariance matrix, of the normal proposal density
start
vector containing the starting value of the parameter