Run a Metropolis Hastings within Gibbs algorithm and a Metropolis Hastings algorithm with the covariance matrix estimated on the the sample set generated in the Metropolis within Gibbs. This algorithm is suitable only for models with discrepancy.
MetropolisHastingsCppD(Ngibbs, Nmh, theta_init, r, SIGMA, Yf, binf, bsup,
LogTest, stream)
the number of iteration in the Metropolis within Gibbs
the number of iteration in the Metropolis Hastings
the starting point
regulation percentage in the modification of the k
the covariance of the proposition distribution
the vector of recorded data
the lower bound of the parameters to calibrate
the upper bound of the parameters to calibrate
the log posterior density distribution
(default=1) if stream=0 the progress bar is disabled
list of outputs:
PHIwg the points of the Metropolis within Gibbs algorithm in the transformed space
PHI the points of the Metropolis Hastings algorithm in the transformed space
THETAwg the points of the Metropolis within Gibbs algorithm in the real space
THETA the points of the Metropolis Hastings algorithm in the real space
AcceptationRatioWg the vector of the acceptance ratio for each parameter in the Metropolis within Gibbs
AcceptationRatio the acceptance ratio in the Metropolis Hastings
S the covariance computed after the Metropolis within Gibbs
LikeliWG the likelihood computed at each iteration of the Metropolis within Gibbs algorithm
Likeli the likelihood computed at each iteration of the Metropolis Hastings algorithm