I was trying to implement survival model in stan but found that same patients (10%) have one or two recurrences. There are 250 patients with 5 time points per patient. The setting is orally transmitted infectious disease. All patients are in some area and communicate at some extent. 50 patients are treated and they do survive. Also, treated patients help to kill infection in untreated patients (mechanism unknown). The goal is to model survival of 200 untreated patients.Typical timeline for untreated patient is healthy-sick-death but there are occurrences of sick-healthy-sick or healthy-sick-healthy or even healthy-sick-healthy-sick. Can somebody suggest what model would be appropriate?
Thanks for any suggestions.