version 10 clear cd c:\data\stata use http://www.learneconometrics.com/class/stata/caschool, clear describe summarize label variable str "Student to teacher ratio" summarize str if testscr>=650 scalar mean1 = r(mean) di "average str above testscr=650 is " mean1 summarize str if testscr<650 scalar mean2 = r(mean) di "average str below testscr=650 is " mean2 histogram testscr, normal use http://www.learneconometrics.com/class/stata/macro_2e, clear tsset time gen lp = log(punew) gen infl = D.lp summarize tsline infl summarize infl, detail di "Inflation peak" list time infl if (infl == r(max)) di "Inflation trough" list time infl if (infl == r(min)) use http://www.learneconometrics.com/class/stata/fatality, clear summarize xtset state year histogram vmiles, normal more histogram vmiles, normal kdensity more by year, sort : summarize beertax