-
Login or Register
- Log in with
twoway (bar meanmi type), xtitle("") ylabel(0 (1) 6, labsize(small)) subtitle("M-Fund") graph save mi, replace twoway (bar meanai type), xtitle("") yscale(r(0 6) off fill) subtitle("A-Fund") graph save ai, replace twoway (bar meanxi type), xtitle("") yscale(r(0 6) off fill) subtitle("P-Fund") graph save xi, replace graph combine mi.gph ai.gph xi.gph, ycommon rows(1) imargin(tiny)
clear set scheme s1color set obs 4 set seed 2803 gen type = word("symL symH asymDL asymD", _n) gen meanmi = rnormal(3, 1) gen meanxi = rnormal(2, 0.5) gen meanai = rnormal(5, 1.5) preserve rename (meanmi meanxi meanai) (mean1 mean2 mean3) reshape long mean, i(type) j(which) label def which 1 "M-Fund" 2 "X-Fund" 3 "P-Fund" label val which which label def type 1 symL 2 symH 3 asymDL 4 asymD encode type, gen(TYPE) label(type) twoway bar mean TYPE, by(which, row(1) note("") compact) xtitle("") barw(0.5) xla(1/4, tlength(0) valuelabel labsize(small)) restore
Comment