BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bncoxuk
Obsidian | Level 7

Hi Sir, sorry to bother. I really like to understand the default coding method used in the LOGISTIC procedure. SAS manual said the default one is 'Effect coding'. I used this default setting and got the results as below. Note the model has an interaction term age*use.

My questions are:

1) how to interpret the coefficents of the interaction term?

2) how to calculate the coefficents for the other groups of the interaction term? Age has the other group 'M', and use has the other group 'T'. So I want to get the coefficents for age='D' & use='T', age='G' & use='T', age='O' & use='T', age='M' & use='T'.

I spent a lot of time searching on the internet about 'effect coding', interaction, but cannot find any useful learning resources. Any recommendation of textbooks?

Many thanks a lot for help.

The LOGISTIC Procedure

                Analysis of Maximum Likelihood Estimates

                                 Standard          Wald
Parameter       DF    Estimate      Error    Chi-Square    Pr > ChiSq

Intercept       1     -3.5735      0.0138    66945.2041        <.0001
age     D       1     -0.1990      0.0171      136.2082        <.0001
age     G       1      0.0993      0.0245       16.3795        <.0001
age     O       1      0.2356      0.0284       68.8867        <.0001
use     B       1      0.0716      0.0162       19.6340        <.0001
use     C       1     -0.4513      0.0245      338.7862        <.0001
age*use D B     1     0.00122      0.0200        0.0037        0.9514
age*use D C     1     -0.0115      0.0301        0.1474        0.7010
age*use G B     1      0.0727      0.0287        6.4342        0.0112
age*use G C     1     -0.0459      0.0444        1.0681        0.3014
age*use O B     1     -0.0953      0.0333        8.2016        0.0042
age*use O C     1      0.0834      0.0500        2.7795        0.0955

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Design and Analysis of Experiments by Montgomery is a good one.

Another good exercise is to write out your model with the dummy variables as SAS has coded them and see if its what you need.

View solution in original post

2 REPLIES 2
Reeza
Super User

Design and Analysis of Experiments by Montgomery is a good one.

Another good exercise is to write out your model with the dummy variables as SAS has coded them and see if its what you need.

Doc_Duke
Rhodochrosite | Level 12

Personally, I find the coefficients easier to interpret if I use "reference cell" coding.

A good reference that uses SAS for the examples is Paul Allison's "Logistic Regression Using the SAS System" that is a SAS BBU.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1489 views
  • 3 likes
  • 3 in conversation