Stan coding question for Gompertz curve fitting

I am trying to fit the Gompertz curve to an infection trajectory:

Would you tell me how shoul I code for this??

This example does a non-linear regression: https://mc-stan.org/users/documentation/case-studies/golf.html . That’s probably a good reference for doing something like this in Stan.

There’s a long thread here on doing some sort of Gompertz thing with brms you might try: Hierarchical Gompertz model

2 Likes