Sie sind auf Seite 1von 1

___ ____ ____ ____ ____ (R)

/__
/
____/
/
____/
___/
/
/___/
/
/___/
11.0
Statistics/Data Analysis

Copyright 1984-2009
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)

Special Edition

10-student Stata lab perpetual license:


Serial number: 40110535701
Licensed to: efsa5
efsa10
Notes:

1.
2.

(/m# option or -set memory-) 50.00 MB allocated to data


(/v# option or -set maxvar-) 5000 maximum variables

. use "C:\Documents and Settings\Administrator\My Documents\Downloads\record2.dta"


. summarize
Variable

Obs

Mean

airplay
attract
adverts
sales

200
200
200
200

27.5
6.77
614412.3
193200

Std. Dev.
12.26958
1.39529
485655.2
80698.96

Min

Max

0
1
9104
10000

63
10
2271860
360000

. regress sales adverts attract airplay


Source

SS

Model
Residual

8.6138e+11
4.3457e+11

Total

1.2960e+12

sales

Coef.

adverts
attract
airplay
_cons

.0848848
11086.34
3367.425
-26612.96

df

MS

3
196

2.8713e+11
2.2172e+09

199

6.5123e+09

Std. Err.
.006923
2437.849
277.7708
17350

Number of obs
F( 3,
196)
Prob > F
R-squared
Adj R-squared
Root MSE

P>|t|

12.26
4.55
12.12
-1.53

=
=
=
=
=
=

200
129.50
0.0000
0.6647
0.6595
47087

[95% Conf. Interval]

0.000
0.000
0.000
0.127

.0712317
6278.552
2819.622
-60829.61

.098538
15894.12
3915.228
7603.693

. regress sales adverts attract airplay, beta


Source

SS

Model
Residual

8.6138e+11
4.3457e+11

Total

1.2960e+12

sales

Coef.

adverts
attract
airplay
_cons

.0848848
11086.34
3367.425
-26612.96

df

MS

3
196

2.8713e+11
2.2172e+09

199

6.5123e+09

Std. Err.
.006923
2437.849
277.7708
17350

Number of obs
F( 3,
196)
Prob > F
R-squared
Adj R-squared
Root MSE

t
12.26
4.55
12.12
-1.53

=
=
=
=
=
=

200
129.50
0.0000
0.6647
0.6595
47087

P>|t|

Beta

0.000
0.000
0.000
0.127

.5108462
.1916834
.5119881
.

. predict psales
(option xb assumed; fitted values)
. predict r,resid
. predict sr, rstand
. list sr sales airplay attract adverts psales r if abs(sr)>2
sr

sales

airplay

attract

adverts

psales

1.
2.
10.
47.
52.

2.177404
-2.323083
2.130289
-2.460996
2.099446

330000
120000
300000
40000
190000

43
28
40
25
12

10
7
7
8
4

10256
985685
174093
102568
405913

229920.3
228949
200466.3
154969.8
92597.34

100079.7
-108949
99533.75
-114969.8
97402.66

55.
61.
68.
100.
164.

-2.455913
2.104079
-2.363549
2.095399
-2.628814

190000
300000
70000
250000
120000

33
30
37
5
53

8
7
7
7
8

1542329
579321
56895
1000000
9104

304123.1
201189.7
180415.6
152713.3
241324

-114123.1
98810.3
-110415.6
97286.66
-121324

169.
200.

3.093333
-2.088044

360000
110000

42
20

8
9

145585
785694

215867.5
207206.1

144132.5
-97206.06

. predict d, cooksd
. list sales airplay attract adverts d if d>4/200
sales

airplay

attract

adverts

1.
47.
52.
55.
68.

330000
40000
190000
190000
70000

43
25
12
33
37

10
8
4
8
7

10256
102568
405913
1542329
56895

.0587039
.0241152
.0331592
.0404159
.022289

99.
100.
119.
164.
169.

250000
250000
230000
120000
360000

55
5
57
53
42

7
7
6
8
8

1132877
1000000
912349
9104
145585

.0281122
.031364
.0308436
.0707659
.050867

200.

110000

20

785694

.0251346

. predict lev, leverage


. list sales airplay attract adverts dfit if abs(dfit)>2*sqrt(3/200)
variable dfit not found
r(111);
. list sales airplay attract adverts dfit if abs(dfit)>2*sqrt(3/200) df bet
variable dfit not found
r(111);
. list sales airplay attract adverts lev if lev>(2*3+2)/200
sales

airplay

attract

adverts

lev

1.
7.
12.
23.
42.

330000
70000
70000
320000
310000

43
20
20
30
63

10
1
2
9
7

10256
471814
611479
1789659
50000

.0471905
.0910426
.0640989
.0448161
.0582267

43.
82.
87.
88.
113.

340000
70000
360000
300000
30000

31
1
35
40
9

7
4
5
5
3

2000000
256894
1985119
1837516
507772

.0459253
.042489
.0581522
.0532777
.0470932

116.
119.
138.
181.
183.

90000
230000
60000
70000
250000

5
57
28
19
55

9
6
1
1
9

102642
912349
30425
179061
295840

.0463069
.0400891
.0987117
.0925977
.0423153

184.

320000

31

2271860

.0758152

. predict dfit, dfits


. list sales airplay attract adverts dfit if abs(dfit)>2*sgrt(3/200)
unknown function sgrt()
r(133);
. list sales airplay attract adverts dfit if abs(dfit)>2*sqrt(3/200)
sales

airplay

attract

adverts

dfit

1.
10.
12.
46.
47.

330000
300000
70000
220000
40000

43
40
20
37
25

10
7
2
7
8

10256
174093
611479
1507972
102568

.489294
.268958
-.2574331
-.2821551
-.3146882

52.
55.
68.
69.
94.

190000
190000
70000
50000
140000

12
33
37
16
1

4
8
7
8
7

405913
1542329
56895
255117
268598

.3674178
-.407364
-.3021645
-.2540364
.2450099

99.
100.

250000
250000

55
5

7
7

1132877
1000000

-.3372139
.357318

Das könnte Ihnen auch gefallen