I've been given a task with the following question:
- Investigate whether or not the type or treatment (0 or 1) has an impact on the result (0 or 1)
- The same as 1), but keeping in mind another variable which is either 0,1 or 2 may be a confounder for the result.
How would I check whether or not it has an impact? For question one, I think I can use a chi-squared test, is this correct? And for question two, I'm not sure how to include the confounder in the test.