I looking at the relation between years of education and vaccine skepticism across countries. I want to label just one country, France. But am unable to. I tried labeling all countries on the graph and even that fails. The Country variable is a string variable. I'm not sure what's going on here.
Code:
reg Safety School_Years
gen country1 = "France" if Country=="France"
scatter Safety School_Years || lfit Safety School_Years, mlabel(country1) legend(off) ytitle("% not agreeing that vaccines are safe")
*Labelling all countries - also failing
scatter Safety School_Years || lfit Safety School_Years, mlabel(Country) legend(off) ytitle("% not agreeing that vaccines are safe")
Related Posts with Labeling a single observation on a scatter plot.
Escape character in shell commandI have a long command in a shell escape that includes semicolons. If use -#delimit ;- to allow for a…
import (nonstandard) data with incorrect formats?Dear All, I have this dataset in PDF format (the files are here Array , Array ) as follows. Array Ar…
interpretation of coefficient of independent variable which is measured as a % of GDPI am doing a ols regression analysis using Gini index as the dependent variable and remittance measu…
Problem with graph export using globalsHi, I am using globals to store my file paths - all the globals are stored in a master dofile that …
Difference-in-difference regression interpretationGood afternoon, I know there have been previous posts regarding this topic, however I first wanted …
Subscribe to:
Post Comments (Atom)
0 Response to Labeling a single observation on a scatter plot.
Post a Comment