@@ -240,7 +240,7 @@ void ARMS_Gibbs::arms_gibbs_beta(
240240 // mydata->xr = xr;
241241 // mydata->vA = vA;
242242 // mydata->vB = vB;
243- // mydata->tauSq = tauSq ;
243+ mydata->tau0Sq = tau0Sq ;
244244 mydata->kappa = kappa;
245245 mydata->datTheta = datTheta.memptr ();
246246 mydata->datMu = datMu.memptr ();
@@ -257,10 +257,7 @@ void ARMS_Gibbs::arms_gibbs_beta(
257257 // Gibbs sampling
258258 // mydata->tauSq = sampleW(tauA, tauB, currentPars.col(l));
259259 // mydata->tau0Sq = sampleW0(tauA, tauB, currentPars(0,l));
260-
261- tau0Sq = sampleV (tau0A, tau0B, currentPars.row (0 ).t ());
262- mydata->tau0Sq = tau0Sq;
263- tauSq[l] = sampleV (tauA, tauB, currentPars.submat (1 ,l,p,l));
260+
264261 mydata->tauSq = tauSq[l];
265262 // tauSq_tmp[l] = sampleW(tauA, tauB, currentPars.col(l));
266263 // mydata->tauSq = tauSq_tmp[l];
@@ -556,7 +553,7 @@ void ARMS_Gibbs::arms_gibbs_zeta(
556553 mydata->p = p;
557554 mydata->L = L;
558555 mydata->N = N;
559- // mydata->w0Sq = w0Sq;
556+ mydata->w0Sq = w0Sq;
560557 // mydata->wSq = wSq;
561558 // mydata->phi = phi;
562559 // mydata->dirichlet = dirichlet,
@@ -576,9 +573,6 @@ void ARMS_Gibbs::arms_gibbs_zeta(
576573 {
577574 // Gibbs sampling
578575 // mydata->w0Sq = sampleW0(w0A, w0B, currentPars(0,l));
579- w0Sq = sampleV (w0A, w0B, currentPars.row (0 ).t ());
580- mydata->w0Sq = w0Sq;
581- wSq[l] = sampleV (wA, wB, currentPars.submat (1 ,l,p,l));
582576 mydata->wSq = wSq[l];
583577 // wSq_tmp[l] = sampleW(wA, wB, currentPars.submat(1,l,p,l));
584578 // mydata->wSq = wSq_tmp[l];
0 commit comments