Hi,
I am running survival analysis models (time to event regressions). In the BRMS package, I don’t know how to place multiple IDs in the model. For instance, my unit of analysis, country-year, is measured at different times. There are over 100 countries in my dataset. On average, each country is measured 20-50 times, depending on the number of years of existence, in my dataset. So, I should account for the multiple IDs for each country. I have the duration, event, and ID (for countries). But I don’t know how to specify in the brm function. brm(duration | cens(event) ~., data = ). I wish to place the ID (country) inside the function. I checked the BRMS documentation, but I couldn’t find any. Kindly let me know if anyone knows about that.
Thanks.