BookmarkSubscribeRSS Feed
RFETT
Calcite | Level 5

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;

2 REPLIES 2
PaigeMiller
Diamond | Level 26

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

--
Paige Miller
PaigeMiller
Diamond | Level 26

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.

--
Paige Miller

SAS Innovate 2025: Register Now

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!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 617 views
  • 0 likes
  • 2 in conversation