Skip to content

Commit

Permalink
fix fixed effect sign for longitudinal likelihood
Browse files Browse the repository at this point in the history
  • Loading branch information
robj411 committed Mar 22, 2019
1 parent 6d23d2a commit 919e744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PReMiuM/src/include/PReMiuMModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,7 @@ double logPYiGivenZiWiLongitudinal(const pReMiuMParams& params, const pReMiuMDat
timesk[counter+j] = times[tStart[i]-1+j];
meanVec(counter+j) = 0.0;
for(unsigned int b=0;b<nFixedEffects;b++){
yk(counter+j)+=params.beta(b,0)*dataset.W(i,b);
yk(counter+j) -= params.beta(b,0)*dataset.W(i,b);
}
}
//RJ tidy up vector copying
Expand Down

0 comments on commit 919e744

Please sign in to comment.