BookmarkSubscribeRSS Feed
ph6
Obsidian | Level 7 ph6
Obsidian | Level 7
I have a dataset of IgG values for three groups. How can I compare the exponentiated differences between log10 transformed group means and present them as geometric mean ratios with associated 95% confidence intervals?
5 REPLIES 5
ballardw
Super User

Examples of the data that you currently have would be helpful.

 

Geometric means normally involve the natural log. Are you sure that Log10 is needed?

PGStats
Opal | Level 21

An example:

 

data heart;
set sashelp.heart;
lChol = log(Cholesterol);
label lChol="Log(Cholesterol)";
run;

proc genmod data=heart;
class smoking_status;
model lChol = smoking_status;
lsmeans smoking_status / diff exp cl;
run;
PG
HF_clin
Fluorite | Level 6

I used Proc genmod on some dummy sas-data preparing for real data to calculate GMT, and GMT ratios. I want to compare groups 1-3 separately vs group 4 as regards the ratios and the results are below but I cannot find a way to output the lsmeans gr / diff exp cl results into a dataset for further processing (add to table outputs). Any suggestions? Also the procedure used for the  would be appreciated (guess I have to investigate the SAS documentation):

proc genmod data=gmt;
class gr;
model lChol = gr;
lsmeans gr / diff exp cl;
*output out=out_gmt ;
run;

HF_clin_0-1631629533911.png

 

PGStats
Opal | Level 21

Add the statement

 

ods trace on;

 

before the procedure call to get a list of available output datasets in the log. Then use a statement such as

 

ods output LSMeans=myLsmeans Diffs=myDiffs;

among the procedure statements to output the datasets.

 


@HF_clin wrote:

... guess I have to investigate the SAS documentation...

 


definitely!

PG

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
  • 5 replies
  • 6592 views
  • 2 likes
  • 4 in conversation