I have a data set with patients who have all had four samples taken during surgery (sample1-sample4). I want to find out if there is an increased risk of sample2-sample4 being positive if the sample1 is positive. Also if there is an increased risk of sample3 and sample4 sample being positive if sample2 is positive and so on.
I suppose I have to use proc mixed by I don't know how to do it. I hope someone can point me in the right direction.
Thank you so much
ansepans
From your description, Cochran's Q test might be appropriate:
Since your response is binary (positive vs negative), PROC MIXED is definitely not what you want to use since it expects a normal response. Cochran's Q tests that the marginal probabilities (probability of positive in each sample) are equal, but since you seem to really be after assessing conditional probabilities (such as probability of positive in sample 4 given result in sample3), I don't think it is what you want either. One thing you could consider are transition models as described in this note.
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!
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.