htopen using myreport.html, replace
sysuse auto, clear
htlog display "We will now conduct a fascinating analysis of the auto.dta data."
htlog regress price mpg
recode mpg (min/25 = 0 "Low/Medium") (25/max = 1 "High"), generate(mpg2)
label var mpg2 "Mileage (level)"
htsummary price mpg2, head median format(%8.2f) test
htsummary weight foreign, median format(%8.2f) test close
htclose