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
C plugin argumentsStataers, I wrote a C plugin that I can call using this code: Code: program r preserve versio…
How to add leading zeros for string variables containing both numbers and lettersHi Statalisters, I try to add leading zeros for my string variable named cusip by using the code -g…
Inter-rater agreement for a large nested survey dataHi all, I am running into an issue dealing with generateng inter-rater agreement for a nested survey…
R squared and Adjusted R squared values on xtreg (random effects panel regression)Hello everyone! I am doing my dissertation which requires me to do some random effects panel data r…
Temp file error.I'm having a problem with a little bit of Code that is: Code: merge 1:1 week using `A1', nogen tem…
Subscribe to:
Post Comments (Atom)
0 Response to Drawing graphs to show subsets of sample
Post a Comment