I have a dataset on eyes with 2 eyes per patient. The data is clustered because the covariates such as age, gender, and ethnicity are the same for both eyes for that one patient.
This is my code so far:
PROC PHREG data = eyes covs(aggregate) plots(overlay)=(survival);
id patientid;
class Var1 (ref = "0") Gender (ref = "M") Ethnic Agegroup (ref = "0") / param = ref;
model TimeToTherapy*therapy(0) = Var1 Agegroup Gender Ethnic NumA1c/ ties=discrete rl;
strata patientid;
run;
However, when I run it, I get errors and hazard ratios, p-values, etc.
However, when I take out the strata patientid;
statement, everything works.
Is it necessary to keep this statement in there?