do cancer_data_setup histogram studytime, by(drug) graph export graph.png, height(400) replace sum age local meanage = r(mean) local meanage: di %3.2f `meanage' sum stime local meanstime = r(mean) local meanstime: di %3.2f `meanstime' local obs = r(N) tabout drug died using table47.html, replace /// style(htm) font(italic) c(freq col row) f(0c) /// twidth(400) title(Table 47: Dynamic content web page /// example) fn(cancer.dta) topf(topblock.html) /// botstr(`meanage'| `meanstime'|`obs') /// topstr($S_DATE) botf(bottomblock.html) /// body family(Arial) css(dynamic.css) open