Hi everyone,
I have a question about PROC surveyreg.
I am using a dataset where treatment (1 or 2) is the independent variable. I am assuming 2 stages of sample selection.
PSU indicates the first stage sampling unit, and SSU the second stage sampling unit. The SSUs are nested within the PSUs.
The PSU are nested within stratum. Stratum is a PSU-level stratification variable.
I wanted to ask if I'm using the correct SAS code:
proc surveyreg data=output.surv627;
Class stratum PSU SSU treatment;
Model Y = treatment|stratum / solution;
Strata stratum;
Cluster PSU SSU;
Weight weight;
run;