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
Overlay 3 kaplan-meier survival graphs from 3 different populationsHello, I'm doing some cross cohort research on SEP and mortality across 3 different cohorts and woul…
Creating a variable with three condtionsI am using a data set of 50 countries which are separated into four regions. I want to create a vari…
Rescaling TimeHi Statlist, I have the following problem. I have a panel dataset of the form: Code: * Example gen…
mediation package: medsens command and why it does not functionDear All, I am at the moment using the mediaton package (Hicks and Tingley, 2011) to conduct a caus…
xtreg regression leaves out one country for i.countryHello everyone, For my thesis, I am aming on extracting country fixed effects on the perception of …
Subscribe to:
Post Comments (Atom)
0 Response to drawing vertical line on a scatter plot
Post a Comment