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)
Why the researchers add controls variables in Panel Data regression?Dear Statalist, I am wondering about the reasons behind adding more control variables in the panel …
How to run the same macro-command(s) on multiple files (creating a loop)Hi! I am wondering how to run a macro-command on multiple files in a folder. The file-names (txt) a…
Importing delimited csv with special characters including double quotesI am trying to import a large comma-delimited csv (~1M rows). Variables are bound by double quotes b…
Using the Code substr() for numbers of regionsHello Everybody! I need help with a code. I have numbers of german's regions (e.g. 1002,1051 to 160…
Time Series, Range specification "if": "tin": "range" commands.Dear All, Thanks in advance! I was running a Vector Autoregressive Model (VAR) with time-series dat…
Subscribe to:
Post Comments (Atom)
0 Response to ) required r(100) (Hard time changing labels)
Post a Comment