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

DATA:

subjidagesex bmiracewk1dermwk1dermthreswk1globalwk1globalthreswk1skinwk1skinthreswk8dermwk8dermthreswk8globalwk8globalthreswk8skinsk8skinthreswk10dermwk10dermthreswk10globalwk10gobalthreswk10skinwk10skinthres
165124.91501190010171110151
245123.92600180110171010151
3700272602001301121011101
44812631002071902060802071
536015.55150501201204010012040100

 

I would like to run logistic regression models for questionnaires given to patients at each week. Each questionnaire is a continuous variable but also has a responder threshold:

 

DERM questionnaire threshold: score=0/1 vs >1

Global questionnaire threshold: score=0/1 vs >1

SKIN questionnaire threshold: score= <8 vs >=8

 

I want to run regression models to assess the impact of potentially relevant covariates where the SKIN threshold is the independent variable and the other two (DERM and global thresholds) are the dependent variables. I also want to find out what other covariates (e.g., age [continuous], sex, bmi [continuous], race) should be included as predictors in the models.

 

i have attempted doing the codes for week1 below and wanted to verify if they look correct:

 

proc logistic data = "c:mydatahsb2" desc;
  model wk1DERMthres = wk1SKINthres AGE sex RACE BMI / expb;
run;
proc logistic data = "c:mydatahsb2" desc;
  model wk1Globalthres = wk1SKINthres AGE  sex RACE BMI / expb;
run;

 

if i want to conduct ANCOVA models for the questionnaires (DERM, Global) as continuous variables (total scores) to evaluate the association between DERM and SKIN threshold and Global and SKIN threshold and to assess whether or not other variables (e.g.,  age, sex, race, bmi) have an impact on the association, are these the correct codes:

 

proc logistic data=work.question;

class wk1SKINthres; 

model wk1DERM= wk1SKINthres age wk1SKINthres*age/solution;

lsmeans wk1SKINthres*age/tukey line;

run;

 

proc glm data=work.question;

class wk1SKINthres;

model wk1Global = wk1SKINthres age wk1SKINthres*age/solution;

lsmeans wk1SKINthres*age/tukey line;

run;

 

proc glm data=work.question;

class wk1SKINthres race; 

model wk1DERM= wk1SKINthres race wk1SKINthres*race/solution;

lsmeans wk1SKINthres*race/tukey line;

run;

 

proc glm data=work.question;

class wk1SKINthres race ;

model wk1Global = wk1SKINthres race wk1SKINthres*race/solution;

lsmeans wk1SKINthres*race/tukey line;

run;

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

 

I advise against dichotomizing your variables since it throws away information. If the responses are approximately normally distributed, then PROC GLM is fine. You would never use PROC LOGISTIC with a continuous response. As mentioned in this note on ANCOVA models, you could handle more than one covariate in a single model. For example, these statements allow you to test if the slopes on BMI and AGE differ by looking at the tests for the interactions. 

 

proc glm data=work.question;

class wk1SKINthres

model wk1DERM= wk1SKINthres bmi bmi*wk1SKINthres age age*wk1SKINthres / solution;

run;

 

(Note there is no SOLUTION option in PROC LOGISTIC... it always prints the parameter estimates.)

View solution in original post

1 REPLY 1
StatDave
SAS Super FREQ

 

I advise against dichotomizing your variables since it throws away information. If the responses are approximately normally distributed, then PROC GLM is fine. You would never use PROC LOGISTIC with a continuous response. As mentioned in this note on ANCOVA models, you could handle more than one covariate in a single model. For example, these statements allow you to test if the slopes on BMI and AGE differ by looking at the tests for the interactions. 

 

proc glm data=work.question;

class wk1SKINthres

model wk1DERM= wk1SKINthres bmi bmi*wk1SKINthres age age*wk1SKINthres / solution;

run;

 

(Note there is no SOLUTION option in PROC LOGISTIC... it always prints the parameter estimates.)

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 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
  • 1 reply
  • 1601 views
  • 0 likes
  • 2 in conversation