Hi everyone, I'm using Stata version 15.1.

I am trying to get the right syntax for a model. I tried to visualize it and the image is below (apologize for the poor rendering).
I have longitudinal data following the same individuals over the span of 5 years. These individuals are then nested in their counties but also in their county-wave. In other words, the data is not strictly hierarchical since some observations might be in the same county but in different county-waves.


I believe the appropiate syntax is
Code:
mixed y x || _all: R.county || id: wave, var
I have tried the following but the model never converges
Code:
mixed y x || _all: R.county|| id: || wave:
Any help is appreciated.

Best,

Array