Hi,
I have a data set that I will be analyzing soon by a particular grouping with 2 levels. I first want to compare the two groups on a variety of demographic characteristics (gender, race, etc.) to ensure the two groups are similarly composed. I know that Chi-Square test of independence is best to use for this type of categorical distribution comparison, but I can't find documentation on how to conduct a chi2 test on one variable split by another variable.
For example, let's say I have a race variable with 5 levels and a dichotomous group variable with 2 levels (control and treatment). If I want to compare the racial makeup of my control group with the racial makeup of my treatment group, how would I go about this is stata?
Thanks!
Related Posts with Chi-Square Test for Comparing Subgroup Characteristics
mixed command for fixed effect modelHello, I developed a random effect model as follows: mixed firmperformance_ln typeofstrategy firma…
How to get this kind summary statistics? Is there any sample code?Attached below. Thanks!! …
European Health for All database (HFA-DB) PIVOT formatFellow Stata users! I want to explore and analyse the WHO- European Health for All database (HFA-DB…
Need Help: Propensity Score Matching Nonnegative integersHi guys, really need help if possible! I'm new to Stata and currently doing my dissertation/thesis …
coefplot for two RegressionsAll, I am trying to plot coefficients for two regressions in the same plot. using the following code…
Subscribe to:
Post Comments (Atom)
0 Response to Chi-Square Test for Comparing Subgroup Characteristics
Post a Comment