# How do I calculate whether something is an independent risk factor?

I do not know what calculation/formula to use to show that something is an independent risk factor.

E.g., in a cohort study:

Group A (n=1000) - exposure to X - outcome exposed 70/1000 demonstrate Z

Group B (n = 1000) - no exposure -- outcome control 23/1000 demonstrate Z

However, of Group A 750 also exposed to Y -- 60 demonstrate Z

Group B 300 also exposed to Y -- 16 demonstrate Z

How do I show that Y is an 'independent risk factor' for Z.

(I know that I can calculate the Risk Ratio to compare Exposure X to control, but do not know what formula I use to show that Y is an independent risk factor for Z).

UPDATE -

I realised that my question was related to whether the second criteria (Y) may be confounding the outcome... I.e. To establish whether the second variable may be confounding the results need to show:

1) that Y is an independent risk factor; 2) that Y is not an intervening variable and 3) that Y is associated with the study factor.

I couldn't work out how to show (1).. But then realised that what I had to do was look only at the non-exposed people. I calculated the RR for them in relation to Y. (16/300 -exposed)/(7/700-) = 5.3... So in the control group people exposed to Y have a 5.3 greater risk than those not exposed to Y of developing Z. I would argue that this shows that Y is an independent risk factor (as there is no exposure to X; exposure to Y; and an increased risk of developing Z).

(2) and (3) are satisfied.

I then used the stratification approach to demonstrate that the results were actually confounded... (which they were).