Hello everyone,
I am taking my first course in econometrics and therefore very much an amateur.
At the moment I am constructing a twoway scatterplot with lfits but I cannot seem to able to change the lable names under the plot. Here's my code:
twoway (scatter wage educ if female==0, mcolor(green) msymbol(oh)) (lfit wage educ if female==0, lcolor(green) lwidth(thin)) (scatter wage educ if female==1, mcolor(orange) msymbol(oh)) (lfit wage educ if female==1, lcolor(orange) lwidth(thin)) legend(label(1 "Male Wage") label(2 "Predicted Wage for Males") label(3 "Female Wage") label(4 "Predicted Wage for Females"))
As mentioned, everything is running smoothly up until:
legend(label(1 "Male Wage") label(2 "Predicted Wage for Males") label(3 "Female Wage") label(4 "Predicted Wage for Females"))
However I do it I keep getting: ) required r(100);
What have I done wrong? As far as I'm concerned I've structured my parentheses properly.
Thank you for your help
Hugo
Related Posts with ) required r(100) (Hard time changing labels)
Collapse (mean) and data orderingHi statalist, I'm working with a data set that resembles the following: ID Income 1 50 1 40 1 20 2…
Drawing a line through the outer XY combinations below the trend lineThe eventual goal is to assign minimum value of actl for a new exp value (where actl is missing). I …
Identifying recession pointsHello, I have a dummy variable with 1 and -1: 1 corresponds to a peak, and -1 - to a trough. I want…
Storing results with a large loop (>11000)I am trying to store results across a large loop. I have previously done as follows but am limited t…
How to avoid losing variable labels when using collapse commandI have smallholder agriculture plot level commercialization data which i want to collapse to househo…
Subscribe to:
Post Comments (Atom)
0 Response to ) required r(100) (Hard time changing labels)
Post a Comment