Skip to content

Commit

Permalink
Merge branch 'master' into devel
Browse files Browse the repository at this point in the history
  • Loading branch information
timjmiller committed May 25, 2022
2 parents 355593b + 97577f1 commit 4935162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/age_comp_sim.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ vector<Type> rlogisticnormal(vector<Type> x, vector<Type> p, vector<Type> pars,

using namespace density;
MVNORM_t<Type> mvnorm(Sigma);
vector<Type> y = exp(mvnorm.simulate());
vector<Type> y = exp(mu + mvnorm.simulate());
if(do_mult){
for(int i = 0; i < npos-1; i++) y = y/(1 + (y.head(i+1))).prod();
} else {
Expand Down

0 comments on commit 4935162

Please sign in to comment.