I have a question related to testing the equality of two proportions from independent samples. I have typically used the Pearson Chi-squared or Exact test in Stata for this type of thing. I am wondering if degrees of freedom accounts for very small proportions in either or both samples.
I’ll provide an example to better illustrate what I am asking…
Imagine that I have collected samples from two neighborhoods. I asked all those sampled about their feelings towards a new city ordinance. Using the Chi-squared test, I can infer whether it is likely that these two neighborhoods are homogenous or different in their feelings about the ordinance.
As far as I understand, the degrees of freedom used to conduct a Chi-squared test accounts for the size of the sample collected from both neighborhoods. I am wondering how I account for a small overall proportion. Going back to my example, imagine I sampled 1000 people from each neighborhood but only 20 from neighborhood X supported the ordinance while 30 from Y supported the ordinance.
I am wondering if the calculation for degrees of freedom with Chi-squared accounts for a small numerator in the proportion calculation or if there is an alternative test that accounts for this… hopefully something available in Stata.
Thanks in advance.
I’ll provide an example to better illustrate what I am asking…
Imagine that I have collected samples from two neighborhoods. I asked all those sampled about their feelings towards a new city ordinance. Using the Chi-squared test, I can infer whether it is likely that these two neighborhoods are homogenous or different in their feelings about the ordinance.
As far as I understand, the degrees of freedom used to conduct a Chi-squared test accounts for the size of the sample collected from both neighborhoods. I am wondering how I account for a small overall proportion. Going back to my example, imagine I sampled 1000 people from each neighborhood but only 20 from neighborhood X supported the ordinance while 30 from Y supported the ordinance.
I am wondering if the calculation for degrees of freedom with Chi-squared accounts for a small numerator in the proportion calculation or if there is an alternative test that accounts for this… hopefully something available in Stata.
Thanks in advance.
Comment