Selvin, Problem 1.
For this problem, the following output from Stata may be helpful. [For those
who are learning to use Stata, note that the "infile"
command would actually all be on one typed line, but is split here for readability.]
. infile obs gest sex
bwt cigs ht wt0 wt1 using ":Stat 227 Aut95:SDS:TBL1-4.DAT"
(48 observations read)
. sort sex
. by sex: summarize bwt
-> sex= 0
Variable | Obs Mean Std. Dev. Min Max
---------+-----------------------------------------------------
bwt | 29 3728.103 573.5438 2450 5220
-> sex= 1
Variable | Obs Mean Std. Dev. Min Max
---------+-----------------------------------------------------
bwt | 19 3379.211 411.2186 2900 4270