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
Jade | Level 19

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
Jade | Level 19

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
Super User

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

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 3272 views
  • 0 likes
  • 3 in conversation