adaptiveMH(target, AP, proposal, verbose)target: specifies the target distribution.
See the help of target. If the target is discrete, target must contain the slots dproposal, rproposal and proposalparam that specify the proposal kernel in the Metropolis-Hastings step. Otherwise the default is an adaptive gaussian random walk.
"tuningparameters": specifies the number of chains, the number
of iterations, and what should be stored during along the run. See the help of tuningparameters.
"proposal": specifies the proposal distribution to be used to
propose new values and to compute the acceptance rate. See the help of proposal. If this
is not specified and the target is continuous, then the default is an adaptive gaussian random walk.
"logical": if TRUE (default) then prints some indication of progress
in the console.
preexplorationAMH