I am using code from https://rpubs.com/choisy/sir to estimate and optimize parameters in a SIR and SEIR model.
I had no trouble for the SIR model, but when I changed