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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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