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
Significance level based on the Wilcoxon signed rank testDear all, this is my first post and first of all, I must say, thank you all for providing so much i…
Flexible parametric modelling, models do not convergeHi, I’m using the -stpm2- command to generate a flexible parametric model (relative survival, >1…
Panel Data : Insufficient Observations (Singletons or separated by a fixed effect)Good day, I am using Stata 16 to run a fixed effect on effect Non Tariff Measures ( ADP QR SG SPS T…
Decomposing regression into within and between effectsConsider the following baseline model: yijk = beta * xijk + errorijk where i indicates a child, j i…
Principal Component Analysis (Creating an Index using Multiple Scores)Hello, everyone. I am computing an index using Principal Component Analysis. After running the PCA c…
Subscribe to:
Post Comments (Atom)
0 Response to One sample test of proportions
Post a Comment