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
Including confidence intervals in estimate plotsI have a dataset in which per country, the estimates of coefficients are given as well as their t sc…
STATA stuck computing matchit resultsI am attempting to match two datasets, one of which is about 70 000 observations and the other maybe…
Why set maxvar is ignored?When I set maxvar and STATA return as below, can I ask why and the solution? Code: set matsize 110…
Seeking ideas for graphical representation of binary outcome dataHello all, I have a dataset (n=301) that describes the incidence of hypothermia (binary outcome) by …
How to cluster nothing in a code?I have a code that is Code: did2s depvar [if] [in] [weight], first_stage(varlist) second_stage(var…
Subscribe to:
Post Comments (Atom)
0 Response to Drawing graphs to show subsets of sample
Post a Comment