You are missing quotes here
lines(time, S.fit0, type ="l", lty = 1, col = 2)
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.
You are missing quotes here
lines(time, S.fit0, type ="l", lty = 1, col = 2)
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.