Hi! I'm a bit far removed from the chi square test and controlling for a variable (which I once must've learned way back when?). I'm trying to see if facility type is a confounding factor in a chi-square analysis where I use: proc freq data=keep tables type*category*missing_doses/chisq; run; I'm was initially trying to see if facilities within a certain category were more likely to have kids missing doses. So I used the above code but without the 'type*'. And I got a significant chi-sq value (p<.0001) But, I wanted to make sure that the facility type wasn't causing the significant outcome. So, I added the 'type*' in the above code and when I look at both facility types, the chisq value isn't significant. Does that mean there really is no significant difference and that type is a confounder? I'm so far removed from this that I just don't remember what it means to control for a variable ( I only remember if you don't control for a confounding variable, it can create a false association) And what does it mean that you get a significant result looking at all facility types. But, when you control for facility types, the significant results go away? Any help you can give is greatly appreciated!
... View more