display "Hello, world!" sysuse auto.dta tabulate foreign headroom // Dataset with test scores use "https://stats.idre.ucla.edu/stat/stata/notes/hsb2", clear scatter read math, title("Reading score vs Math score") scatter math science, title("Math score vs Science score") quietly scatter read math, title("Reading score vs Math score") display "displayed" // display "comment" display "line continuation " /// comment "comment" * display "not displayed" display "displayed1" /* display "displayed2" */ display "displayed3" %head 5 %help summarize local local1 "foo" local local2 "bar" local abcd "foo bar" %locals %locals loc %globals cap ssc install estout sysuse auto, clear eststo clear eststo: qui regress price mpg rep78 eststo: qui regress price mpg rep78 gear_ratio trunk eststo: qui regress price mpg rep78 gear_ratio trunk weight displacement %html esttab, label title("Regression Table") html sysuse auto, clear #delimit ; display "Hello, world!"; display "Hello, world!" %delimit #delimit cr sysuse auto, clear mata %status y = st_data(., "price") X = st_data(., "mpg trunk") n = rows(X) X = X,J(n,1,1) XpX = quadcross(X, X) XpXi = invsym(XpX) b = XpXi*quadcross(X, y) b' end %status