Hi all,
Any ideas on how to make this so that the bottom picture is centered between the two top ones, and how to make the spacing so I can see it? So far I just have graph combine fig1 fig2 fig3 as my codE#!
h graph_combine
* sandbox dataset
clear
set obs 42
gen mdate = ym(2017, 12) + _n
set seed 2803
foreach v in x1 x2 y1 y2 z1 z2 {
gen `v' = rnormal()
}
* need to reshape
rename (x1-z2) (outcome=)
reshape long outcome, i(mdate) j(which) string
* fix value and variable labels
gen in_or_out = real(substr(which, 2, 1))
label define in_or_out 1 Pittsburgh 2 "rest of known universe"
label val in_or_out in_or_out
gen WHICH = substr(which, 1, 1)
encode WHICH, gen(group)
label def group 1 Allegations 2 Risk 3 Homelessness , modify
label val group group
separate outcome, by(in_or_out) veryshortlabel
line outcome? mdate, by(group, note("")) lp(solid dash) xla(702(12)738, format(%tmCCYY) tlength(*0.2) tlc(none)) xtitle("") xtic(695.5(12)743.5, tlength(*3) grid glc(gs12)) legend(col(1))
Comment