Hi there
I have a straightforward problem and would be grateful for advice.
I want to know whether my number of cases of heart disease differs significantly by social class (ordered 1 to 5, where 1 is the most deprived and 5 is the least deprived).
The null hypothesis is that there is no difference, so I would expect the distribution to be equal (20%) for each category.
I am using Nick Cox's "chitesti" command (chi sq distribution for goodness of fit test) to tell me whether to reject the null hypothesis:
Pearson chi2(4) = 82.9652 Pr = 0.000
likelihood-ratio chi2(4) = 82.6660 Pr = 0.000
But it also looks like there is a trend in my data (for example, cat.1 contains 296 cases, while cat.5 contains only 123 cases), so I would like to know whether there is a significant trend to this distribution.
Is there an option in the chitesti command or should I use an alternative command?
With thanks
I have a straightforward problem and would be grateful for advice.
I want to know whether my number of cases of heart disease differs significantly by social class (ordered 1 to 5, where 1 is the most deprived and 5 is the least deprived).
The null hypothesis is that there is no difference, so I would expect the distribution to be equal (20%) for each category.
I am using Nick Cox's "chitesti" command (chi sq distribution for goodness of fit test) to tell me whether to reject the null hypothesis:
Code:
chitesti 296 205 218 165 123
likelihood-ratio chi2(4) = 82.6660 Pr = 0.000
But it also looks like there is a trend in my data (for example, cat.1 contains 296 cases, while cat.5 contains only 123 cases), so I would like to know whether there is a significant trend to this distribution.
Is there an option in the chitesti command or should I use an alternative command?
With thanks
Comment