Resources to help you learn and use Stata.
Stata Tutorial
graph twoway scatter lexp gnppc , xline() yline()
egen xcat=cut(), at( 0, 10, 20)
egen yavg = mean(y), by(xcat)
graph twoway (scatter lexp loggnppc) (lfit lexp loggnppc)
graph twoway scatter lexp gnppc , xline() yline()
egen xcat=cut(), at( 0, 10, 20)
egen yavg = mean(y), by(xcat)
graph twoway (scatter lexp loggnppc) (lfit lexp loggnppc)