Either the (log-)density of the proposal prop.par, given cur.par (if type == "d"), or a proposal parameter (a vector), if type =="r".
Arguments
type
One of the character strings "r", "d"
cur.par
Current state of the chain
prop.par
Candidate parameter
MCpar
A list made of a single element: MCMC parameter for the standard deviation of the log-normal proposition, on the log scale. See pb.MCpar for the default value
log
Logical. Only used when type =="d". Should the result be returned on the log-scale ?
Details
The components prop.par[i] of the proposal parameter are generated independently, from the lognormal distribution: