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

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