BookmarkSubscribeRSS Feed
Yram
Calcite | Level 5

Hi all,

 

Please help me with the following model: (DRUG:aspirin, paracetamol,ibuprofen CHANGE:increased, decreased, unchanged AGE:continous variable BASE_VALUE:Continous variable NO_INJECT:continous COVARIATE:0,1)

 

proc logistic data=new descending;
CLASS drug(Ref='Aspirin') / Param=REF;
MODEL change= Age base_value No_inject drug Age*drug covariate/expb;
run;

 

When I used the above code, I didnot get ODDS Ratio for variables in Interaction, so I used

 

ods graphics on;
proc logistic data=PrepAMDONLY21 plots(only)=(oddsratio(range=clip))descending;
class Txtype /param=ref;
model Change_VA1YR_Outcome = Age drug Base_value No_inject Age*drug covariate;
oddsratio drug;
oddsratio Age;
oddsratio Base_value;
oddsratio No_inject;
oddsratio Covariate;
contrast 'Pairwise Paracetamol vs Aspirin' drug 1 0 / estimate=exp;
contrast 'Pairwise Ibuprofen vs Aspirin' drug 0 1 / estimate=exp;
contrast 'Pairwise Paracetamol vs Ibuprofen ' drug 1 -1 / estimate=exp;
run;
ods graphics off;

 

Please let me know if this is correct!? Attached is the interpretation. Please help me out with the intrepretation if the model is correct.

 

Thansk in Advance,

Yra

2 REPLIES 2
Ksharp
Super User

Can you use LSMEAN ?

Check the example 17 in proc logistic's documentation.

 

proc logistic data=Neuralgia;
class Treatment Sex / param=glm;
model Pain= Treatment|Sex Age;
oddsratio Treatment;
lsmeans Treatment / e diff oddsratio cl adjust=bon;
run;
StatDave
SAS Super FREQ

The CONTRAST statements are meaningless since Drug is involved in interaction and so, by definition, its effect depends on the level of the interacting variable, Age.  Your ODDSRATIO statement for Drug gives you estimates of the odds ratios comparing Drug levels at the mean of Age.  If you want to make the Drug comparisons at a different level of Age, use the AT option in the ODDSRATIO statement.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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