ihmeuw-msca / CurveFit

Generic curve fitting package with nonlinear mixed effects model
https://ihmeuw-msca.github.io/CurveFit/
GNU General Public License v3.0
192 stars 57 forks source link

Fix example/random_effects #95

Closed bradbell closed 4 years ago

bradbell commented 4 years ago

I had to add a new feature to the core model called re_sum_zero_std. This is a standard deviation for the prior that the sum of the random effects for each fixed effect is zero. If you do not specify this option for a variable, infinity is used for the standard deviation. This makes the code backward compatible.

You will also note, if you inspect the example, that i had to change the link function for the alpha variable from exp to log (otherwise the scaling is very poor and the optimizer cannot make progress).