BookmarkSubscribeRSS Feed
rakeshvvv
Quartz | Level 8

Hi All,

 

Can someone help me with the code or procedure for calculation of Geometric LS mean.

 

Best regards

Rakesh

4 REPLIES 4
mkeintz
PROC Star

I know what a geometric mean is, but I'm not sure about "geometric LS mean.".  The term LS (for "least squares", correct?) suggests a predicted vs observed comparison, which makes me think there has to be a model.

 

Can you provide more detail on what you are trying to do, and how geometric LS mean would be understood?

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
rakeshvvv
Quartz | Level 8

Thank you for your response. I am supposes to create a summary table to compare one treatment group against the other treatment group. I have to calculate geometric least square means using the PROC MIXED...I got the required components and I am able to calculate them using Proc mixed.

 

Best regards

mkeintz
PROC Star

Looking at the PROC MIXED documentation, I see that it offers a LSMEANS statement, which I understand is meant to accommodate unbalanced designs in the class variables.  So how is the geometric attribute established?

 

I'm quite curious.  Can you show the proc mixed code you used to satisfy your assignment?

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
PeterClemmensen
Tourmaline | Level 20

I second @mkeintzs respond, I am uncertain about Geometric LS Mean?

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 4619 views
  • 0 likes
  • 3 in conversation