Dear Stata users,
I have a question regarding comparing 3 or more percentages within the same population.
The specific question, I have a continuous variable age split into 3 categories (age_cat), cat A, cat B and cat C and their reported percentages in the sample.
Cat A = 56%
Cat B = 20%
Cat C = 24%
I want to check whether percentages of cat A, cat B and cat C are significantly different from each other or not. and report the p-values.
I tried using this code but getting an error,
// chitest age_cat, sep(3)
error: option sep() not allowed
I believe I should be applying one-sample test of proportions to compare the percentages across categories, however, not sure how to execute it.
I have computed the 95% CI for each category and there is no overlap, however not sure about the exact p-values.
Kindly advise which test should be used; any help will be really appreciated. Thank you.
Regards,
Isha
Related Posts with One sample test of proportions
New Stata module for robust estimation of production functionsA new Stata module for robust estimation of production functions is now available at the SSC archive…
ISOweek from dates in Stata: Code belowThere is no direct command for generating the ISOweek (ISO8601) from a date in Stata. The following …
How to change dot appearance in a marginsplot with recast(dot)?Hello all, Title is self explanatory. I'm presenting margins output in a marginsplot, and I'm choos…
Summing a row for one observation onlyDear all, I would like to sum values that are in the same row but on different columns. For instanc…
Multi-level multiple imputation in a longitudinal dataset with three levelsI have a longitudinal dataset that is hierarchical in nature with repeated measures of outcomes take…
Subscribe to:
Post Comments (Atom)
0 Response to One sample test of proportions
Post a Comment