I am currently trying to analyze the differences between three measurement machines. Every time I attempt to run the code I get an error message saying the statement is out of proper order or not valid. Machine is the fixed effect and Rep is the random effect. Here is the code I am currently using. Any assistance would be appreciated.
Proc GLM data= robertU4L;
Class Machine Rep;
Model TW = Machine Rep;
Fixed= Machine;
Random= Rep;
means machine/lsd;
Run;
There is no FIXED statement in PROC GLM, which assumes if the variable isn't in the RANDOM statement, then it is fixed.
For your reference, here is the PROC GLM documentation, which you should bookmark if you are going to be using PROC GLM a lot.
https://documentation.sas.com/doc/en/pgmmvacdc/9.4/statug/statug_glm_toc.htm
Depending on what you mean by REP you may have mis-specified the model.
If REP is truly a replicate number, then you would not want it in the model. On the other hand, if REP is something else, then it does belong in the model.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.