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: . 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