proposal.nl {BMAmevt} | R Documentation |
NL3 model: proposal distribution.
Description
Density of the proposal distribution q(cur.par,prop.par)
and random generator for MCMC algorithm in the NL3 model.
Usage
proposal.nl(
type = c("r", "d"),
cur.par,
prop.par,
MCpar = get("nl.MCpar"),
log = TRUE
)
Arguments
type |
One of the character strings |
cur.par |
Current state of the chain. |
prop.par |
Candidate parameter. |
MCpar |
A list made of a single element: MCMC parameter. Re-centering parameter for the proposal distribution. |
log |
Logical. Only used when |
Details
The two components of proposal parameter
(alpha*, beta12*, beta13*, beta23*)
are generated independently, under a beta distribution with mode at the current parameter's value.
Let
MCpar$eps.recentre
. To generate alpha*
, given the current state alpha(t)
,
let be the mean
of the Beta proposal distribution and
(a scaling constant). Then
The betaij*
's are generated similarly.
Value
Either the (log-)density of the proposal parameter prop.par
, given cur.par
(if type == "d"
), or a proposal parameter (a vector), if type =="r"
.