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
Help exporting to excelHi everyone, I am previously an R-user and finding the functionality of STATA frustrating. I want to…
-order(c.(A C B)#c.X) option does not work with esttab?Dear all, I use the following commands to make a table: eststo: reg Y c.(A B C)#c.X esttab, order(…
twoway line - point connectionI trying to produce a twoway line graph that connects each point with a straight line. I'm getting a…
Pooled cross sectional regression analysisHi all, I have a dataset that looks like Code: * Example generated by -dataex-. To install: ssc …
'pvarirf' and 'pvarfevd' invalid in 'pvar' packageHello, I use the 'pvar' command to test the Pecking Order Theory for natural resource firms. It wor…
Subscribe to:
Post Comments (Atom)
0 Response to Chi-Square Test for Comparing Subgroup Characteristics
Post a Comment