How do I perform a wald test on STATA to achieve the following? I have a table of that look like the one below. I am trying to write down the distribution of people with 0,1,2,3,4,5 cardiovascular disease risk factors in my sample. Under "All" I will write number of people with these risk factors and under "smoking" and "non-smoking" I will write how many of these people smoke and how many don't. Now, I want to show that the distribution of smokers and non-smokers is significantly different in each row to show that that smoking plays a role in the number of risk factors and wanted to do so with a Wald type test. I wanted help on how I could perform this.
No. of Risk Factors **** All **** Smoking ***** Not smoking
0
1
2
3
4
5