Dear All,
I have a problem that is making me crazy. I use the following command line:
twoway (scatter wlnyw pc if pc<=5||lfit wlnyw pc if pc<=5)
It works fine.
However if I write:
twoway (scatter wlnyw pc if pc<=5||lfit wlnyw pc if pc<=5), ytitle(per worker GDP) xtitle(Political competition) title(Political Competition and per workek GDP when pc<=5)
I got the error message " 5| invalid name"
In addition if I drop the fitted line and I write:
twoway (scatter wlnyw pc if pc<=5), ytitle(per worker GDP) xtitle(Political competition) title(Political Competition and per workek GDP when pc<=5)
it works fine.
What am I doing wrong?
Thanks in advance
ADDENDUM
I discovered that I get what I need if I use:
twoway (scatter wlnyw pc if pc<=5) (lfit wlnyw pc if pc<=5), ytitle(per worker GDP) xtitle(Political competition) title(Political Competition and per workek GDP when pc<=5)
I cannot understand the logic. Why adding additional information into the command line:
twoway (scatter wlnyw pc if pc<=5||lfit wlnyw pc if pc<=5), ytitle(per worker GDP) xtitle(Political competition) title(Political Competition and per workek GDP when pc<=5)
does it not work?
I have a problem that is making me crazy. I use the following command line:
twoway (scatter wlnyw pc if pc<=5||lfit wlnyw pc if pc<=5)
It works fine.
However if I write:
twoway (scatter wlnyw pc if pc<=5||lfit wlnyw pc if pc<=5), ytitle(per worker GDP) xtitle(Political competition) title(Political Competition and per workek GDP when pc<=5)
I got the error message " 5| invalid name"
In addition if I drop the fitted line and I write:
twoway (scatter wlnyw pc if pc<=5), ytitle(per worker GDP) xtitle(Political competition) title(Political Competition and per workek GDP when pc<=5)
it works fine.
What am I doing wrong?
Thanks in advance
ADDENDUM
I discovered that I get what I need if I use:
twoway (scatter wlnyw pc if pc<=5) (lfit wlnyw pc if pc<=5), ytitle(per worker GDP) xtitle(Political competition) title(Political Competition and per workek GDP when pc<=5)
I cannot understand the logic. Why adding additional information into the command line:
twoway (scatter wlnyw pc if pc<=5||lfit wlnyw pc if pc<=5), ytitle(per worker GDP) xtitle(Political competition) title(Political Competition and per workek GDP when pc<=5)
does it not work?
Comment