So for a program I'm writing, I learned how to pass user-specified graph options to graphs that are made by the estimator itself. And I learned (well, rediscovered, I already knew it) that you can have multiple graph reference lines. So it made me wonder "Oh that's pretty cool, let's try and extend this elsewhere". Let's load the West Germany dataset for illustration. Note that I use labvars from ssc, but it doesn't matter here.
We see that we can have multiple reference lines. But why can't we have more than one note? Why can't we have multiple captions? Why does Stata prefer the latter note to the first one? It isn't a big deal, because I'll just use programmers if , if the users specify their own graph options, but either way, I'm curious why Stata is cool with multiple reference lines, but not more than one note. Is there a reason for this?
Code:
u "http://fmwww.bc.edu/repec/bocode/s/scul_Reunification.dta", clear
loc int_time = 1990
cls
qui xtset
local lbl: value label `r(panelvar)'
loc unit ="West Germany":`lbl'
g treat = cond(`r(panelvar)'==`unit' & `r(timevar)' >=`int_time',1,0)
labvars gdp treat "GDP per Capita" "Reunification"
loc int_timerel= `int_time'-1
tsline gdp if `r(panelvar)'==`unit', ///
tline(`int_time') ///
tline(`int_timerel') ///
note("Here's one note") ///
note("Here's another one")

Comment