I am trying to run the following Stata command:
scatter AUC Alpha xline(bestAlpha, lcolor(blue))
, where bestAlpha is a global macro storing the value of 0.0.
When I just execute the command:
scatter AUC Alpha
everything works fine, but when I try to add a vertical line by adding 'xline(bestAlpha, lcolor(blue))' the program would result in error, and I am not sure why.
Just to provide more detail, when I do:
list bestAlpha
Stata gives me the list of length 124 with a value (=0) assigned at index 1, and the rest of the entries are just missing values
when I do:
display bestAlpha
however, Stata gives out its correct value 0.
What should I do to fix my error? The error message is:
Invalid varlist
Thank you,
Related Posts with drawing vertical line on a scatter plot
Setting time variable with an unbalanced panel dataHello, I am working on a project with panel data which is unbalanced. One of the variables is prope…
Appending survey dataHi I am working with the World Bank's Enterprise Surveys, and want to append data from different cou…
Create pairs within groupsDear Stata supporters, I am currently working on my master thesis and therefore want to use STATA. …
Bivariate dynamic probit models for panel dataHi all, I am estimating a Bivariate dynamic probit model for panel data. I follow the approach sugg…
Propensity score matchingHow to move ahead is the propensity score is kept in the interval between (0.1 and 0.9).. how to cal…
Subscribe to:
Post Comments (Atom)
0 Response to drawing vertical line on a scatter plot
Post a Comment