BookmarkSubscribeRSS Feed
Shrij
Calcite | Level 5


PROC GLM DATA = fa_1;
CLASS treatment ;
MODEL CFB = treatment base/ SOLUTION;
LSMEANS treatment / STDERR PDIFF=control("R") CL alpha=0.05 out=LSM;
CONTRAST 'T VS R' treatment -1 1 ; /** T = TEST , R = Reference **/
ESTIMATE 'TEST - REF' treatment -1 1 ;
ods output estimates=estimates1 LSMeanDiffCL = LSMeanDiffCL1 ;
run;

 

data lsm1;
set lsm;
run;

 

 

Can any one help me out understanding the above statements regarding PROC GLM,

and 

One more query I have is that,when ever I submit the program then the program runs with out any error but there is no output file created(the program say it still running even after submitting the run statement). But when I write a program below with set statement only then i can find the data file and the program running message is seen no more 

4 REPLIES 4
PaigeMiller
Diamond | Level 26

PROC GLM ends with a QUIT; statement, it does not end with a RUN; statement.

 

The general idea of this PROC GLM is to see if either TREATMENT or BASE is predictive of the variable CFB, and to determine the fitted model. It is also trying to determine if the mean of CFB at the Test level is statistically significantly different than mean of CFB at the Reference level, after adjusting for the variable BASE.

--
Paige Miller
Shrij
Calcite | Level 5

Thanks for the explanations,

 

but can you please throw some light on the functions used above,

as am not a stat guy so have a least idea of the functions used. But would really like to know them for good, or even you could guide me though a link where i can read it all 

PaigeMiller
Diamond | Level 26

These are very general and very vague questions. I have already given a general answer.

 

If you have specific questions, please ask specific questions.

 

The SAS documentation for PROC GLM explains each function.

https://documentation.sas.com/?cdcId=pgmmvacdc&cdcVersion=9.4&docsetId=statug&docsetTarget=statug_gl...

--
Paige Miller
Reeza
Super User

@Shrij wrote:


PROC GLM DATA = fa_1;
CLASS treatment ;
MODEL CFB = treatment base/ SOLUTION;
LSMEANS treatment / STDERR PDIFF=control("R") CL alpha=0.05 out=LSM;
CONTRAST 'T VS R' treatment -1 1 ; /** T = TEST , R = Reference **/
ESTIMATE 'TEST - REF' treatment -1 1 ;
ods output estimates=estimates1 LSMeanDiffCL = LSMeanDiffCL1 ;
run;

 

data lsm1;
set lsm;
run;

 

 

Can any one help me out understanding the above statements regarding PROC GLM,

and 

One more query I have is that,when ever I submit the program then the program runs with out any error but there is no output file created(the program say it still running even after submitting the run statement). But when I write a program below with set statement only then i can find the data file and the program running message is seen no more 


This more of a self study type of question. Here are some tutorials:

 

Annotated output:

https://stats.idre.ucla.edu/sas/output/glm/

Tutorial:

https://stats.idre.ucla.edu/sas/dae/multivariate-regression-analysis/

Documentation:

https://documentation.sas.com/?docsetId=statug&docsetVersion=14.3&docsetTarget=statug_glm_examples.h...

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1632 views
  • 1 like
  • 3 in conversation