03-04-2016 06:32 PM
I have a dataset below and I wanted to fit a mixed model using PROC MIXED. I have a BY variable named Size, which indicates the sample size. I was wondering if there was any way I could limit the analyses to just Size = 5. So something like:
PROC MIXED data = SimulatedData; by Size = 5; model...; random...; repeated...; run;
but the BY statement will not allow me to specify a certain condition for the variable. Does anybody have any ideas?
03-04-2016 08:42 PM
If you only have one size the BY doesn't matter - you only have one set of results.
The WHERE is its own statement.
You our can leave the BY in, if your using it to generate titles.