Dear Statalisters,
i think this should be easy, but i can´t find a way to do, so i hope you can help me.....
i would like to create a Barchart (showing percentages) of a categorial Var (cat_var1) with four categories. Than i would like to compare the whole sample and a subgroup (matched dataset(merged)).
Let´s say the graph should look like this:
Bar1: category 1 of cat_var1 (subgroup)
Bar2: category 1 of cat_var1 (whole sample)
Bar3: category 2 of cat_var1 (subgroup)
Bar4: category 2 of cat_var1 (whole sample)
Bar5: category 3 of cat_var1 (subgroup)
Bar6: category 3 of cat_var1 (whole sample)
Bar7: category 4 of cat_var1 (subgroup)
Bar8: category 4 of cat_var1 (whole sample)
thanks and best regards!!
Tim K.
i think this should be easy, but i can´t find a way to do, so i hope you can help me.....
i would like to create a Barchart (showing percentages) of a categorial Var (cat_var1) with four categories. Than i would like to compare the whole sample and a subgroup (matched dataset(merged)).
Let´s say the graph should look like this:
Bar1: category 1 of cat_var1 (subgroup)
Bar2: category 1 of cat_var1 (whole sample)
Bar3: category 2 of cat_var1 (subgroup)
Bar4: category 2 of cat_var1 (whole sample)
Bar5: category 3 of cat_var1 (subgroup)
Bar6: category 3 of cat_var1 (whole sample)
Bar7: category 4 of cat_var1 (subgroup)
Bar8: category 4 of cat_var1 (whole sample)
thanks and best regards!!
Tim K.
Comment