Please, I need help specifying the direction of the event in proc GLIMMIX for a longitudinal study. I used the (event='1') statement but when I flipped it the results were the same. It appears that the 'event' statement does not work. The outcome is binomial.
The following is my SAS code
PROC GLIMMIX DATA=COVERED.Demographics method=laplace;
CLASS record_id wkly_contact_simsx(ref='0');
MODEL hospital_adherence(event='1') = wkly_contact_simsx
/SOLUTION DIST=bin LINK=Logit ;
random int / subject=record_id;
lsmeans wkly_contact_simsx/ diff e cl oddsratio ;
run;
Thank you so much for your assistance.
Can you please show the log from each run?
Does your variable
hospital_adherence
have a format attached to it?
Thank you for your prompt response the following are the log and results.
Thank you again
Well, the warning does say it's ignoring the EVENT statement because the outcome isn't binary.
Can you show an proc freq of the hospital_adherence variable?
proc freq data=covered.demographics;
table hospital_adherence*wkly_gathering / missing;
run;
@UcheOkoro wrote:
Thank you for your prompt response the following are the log and results.
Thank you again
Here it is . Thank you
Ok, it looks you have some missing values across your outcome and fixed effect. Try removing those and re-running your proc to see what happens.
I would expect the warning to disappear and if not that's part of the problem.
Thank you for your response. I deleted the missing observations but the results still remained the same
GLIMMIX produces output of Class Level Information and Number of Observations like this:
Please show this to us from running PROC GLIMMIX using your data set.
Is there a warning in the log still?
I don't know enough about proc glimmix to be 100% certain but I'm guess it has to do with the subject being each record id.
Is each record unique with a single value of adherence?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: