Would be grateful for some advice on how to add an extra layer of code to this existing one below if I wanted to include an additional condition (would it be an if statement?) e.g. show the different lines to indicate Female and Male, or level of education (which is 4 categories). The code shows both genders and I coded gender as a binary variable (female = 0 and male =1). Another graph I want to show is difference in level of education where 0 is no high school, 1 is high school, 2 is undergrad and 3 is postgrad. Thank you.
collapse (mean) Fin_Distress, by(subfin)
twoway connected Fin_Distress subfin, mlabel(Fin_Distress)xlabel(1(1)7) legend(off) plotregion(margin(large)) xtitle(Subjective Knowledge)
Related Posts with Drawing graphs to show subsets of sample
why the string variable was non-editable?As you can see from the picture, the contens are grey and non-editable, why? Array when I try to ex…
Merging datasets by inner joinHi, I have to merge three datasets by matching IDs as shown in the picture below. This is doable in…
xtreg fe versus areg robust errors?Hello! I apologize if some of the questions in this post seem simple, but this has to do with my the…
Expanding DatasetHi everyone, I am trying to expand a dataset that looks like this: Dataset A contract_id region_…
When I import csv.file, some variables are not recognizedWhen I import csv.file, some variables are not recognized (?) but appear in the first some cells lik…
Subscribe to:
Post Comments (Atom)
0 Response to Drawing graphs to show subsets of sample
Post a Comment