Friday January 9 11:48:08 2015
Page 1
___ ____ ____ ____ ____(R)
/__
/
____/
/
____/
___/
/
/___/
/
/___/
Statistics/Data Analysis
User: 2
Project: 3
___ ____ ____ ____ ____ (R)
/__
/
____/
/
____/
___/
/
/___/
/
/___/
13.0
Statistics/Data Analysis
Special Edition
Copyright 1985-2013 StataCorp LP
StataCorp
4905 Lakeway Drive
College Station, Texas 77845 USA
800-STATA-PC
http://www.stata.com
979-696-4600
stata@stata.com
979-696-4601 (fax)
Unlimited-user Stata network license expires 27 Jun 2015:
Serial number: 401306268462
Licensed to: msaqibsultan brandeis Notes:
1.
(/v# option or -set maxvar-) 5000 maximum variables
1 . use "C:\Users\Saqib Sultan Khokhar\Desktop\Statistics\writing.dta", clear
(highschool and beyond (200 cases))
2 . sum
Variable
Obs
Mean
id female race ses schtyp
200
200
200
200
200
100.5
.545
3.43
2.055
1.16
prog read write math science
200
200
200
200
200
socst white privatesch~l highses middleses academic general
Std. Dev.
Min
Max
57.87918
.4992205
1.039472
.7242914
.367526
1
0
1
1
1
200
1
4
3
2
2.025
52.23
52.775
52.645
51.85
.6904772
10.25294
9.478586
9.368448
9.900891
1
28
31
33
26
3
76
67
75
74
200
200
200
200
200
52.405
.725
.16
.29
.475
10.73579
.4476348
.367526
.4549007
.5006277
26
0
0
0
0
71
1
1
1
1
200
200
.525
.225
.5006277
.4186302
0
0
1
1
3 . use "C:\Users\Saqib Sultan Khokhar\Desktop\Statistics\autos.dta", clear
(1978 Automobile Data)
4 . clear
5 . use "C:\Users\Saqib Sultan Khokhar\Desktop\Statistics\autos.dta", clear
(1978 Automobile Data)
6 . corr mpg weight
(obs=74)
mpg weight mpg
weight
1.0000
-0.8072
1.0000
1
Friday January 9 11:48:08 2015
Page 2
7 . di -0.8072^2
-.65157184
8 . reg mpg weight foreign
Source
SS
df
MS
Model
Residual
1619.2877
824.171761
2
71
809.643849
11.608053
Total
2443.45946
73
33.4720474
mpg
Coef.
weight foreign _cons
-.0065879
-1.650029
41.6797
Std. Err.
.0006371
1.075994
2.165547
Number of obs
F( 2,
71)
Prob > F
R-squared
Adj R-squared
Root