Quantcast
Channel: Statistics Help @ Talk Stats Forum - SAS
Viewing all articles
Browse latest Browse all 310

alternating logistic regression in sas

$
0
0
Hi
I am trying to run an alternating logistic regression is SAS to examine the relationship between Disease X symptoms and sleep. The study asks patients questions

Q1 :- Do you have Disease X Symptoms (Y / N response)

Q2 :- Do you wake up at night (Y/N)

These 2 questions were asked simultaneously and they subjects were asked these 2 questions repeated over a period of time. My objective is to test if there is an association between sleep and disease X symptoms.

I think this should be a bivariate regression. Example of my data attached




I modeled a ALR using the following code below

proc genmod data=both2 descend;

class subjid quest day ;

model response= day / dist=bin link =logit ;

repeated subject=subjid * question / LOGOR= exch ;

run;



My questions are

1) is my data set up write to model the ALR correctly in SAS

2) What is the correct interpretation of the Alphas. I think since i am using the overall odds for the marginal model a large odds will indicate an association but it seems several literature interprets it differently and the example on the sas website for ALR does not say

Thanks
Attached Files

Viewing all articles
Browse latest Browse all 310

Trending Articles