cd "/Users/kristenaiemjoy/Box Sync/_Teaching/Biostat 212/Biostat212.2018/Lectures/4. Figures" *Lecture 4 Figure notes use "acupuncture.dta", clear **HISTOGRAM hist age, frequency by(group) hist age, frequency normal *BAR CHART encode withdrawal_reason, gen(dropout) graph hbar (percent), over(dropout) by(group) *BOX PLOT graph box basehs, by(sex) nooutsides *DOT PLOT dotplot basehs, over(group) center mean *Install this package for ssc server *ssc install coefplot **COEFFICIENT PLOT webuse nhanes2, clear xtile cholQ = tcresult, nq(4) label define cholQlabel 1 "Q1" 2 "Q2" 3 "Q3" 4 "Q4" label values cholQ cholQlabel logit heartatk i.cholQ age coefplot, vertical eform baselevels drop(_cons age) yline(1)