In your case, we can use your displayed frequencies to get Pearson residuals from the command tabchii in the same package. Typing return list after that command gives more decimal places for the P-value. Here the pearson option gives the more useful Pearson residuals, (observed - expected) / square root of expected, which are the signed square roots of the contribution to chi-square. One way of getting more detail is with the tabchi command downloadable with ssc install tab_chi. These are not individual P-values there is just one P-value, for the entire table, here given as 0.000 to 3 d.p. Here we can see the contribution to chi-square in this case 9.5 of the 27.264 chi-square statistic comes from the bottom right cell. cchi2 is not a separate command it yields the contribution to chi-square and makes most sense when combined with the chi2 option, e.g. There is an option cchi2 to the tabulate command when used with two variables. It also seems confused in terms of both Stata and statistics. This lacks a good reproducible example with a data call we can understand and in fact gives no code whatsoever.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |