You are on page 1of 2

CH13EX1 Thursday November 3 15:42:43 2022 Page 1

___ ____ ____ ____ ____(R)


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

___ ____ ____ ____ ____ (R)


/__ / ____/ / ____/
___/ / /___/ / /___/ 16.0 Copyright 1985-2019 StataCorp LLC
Statistics/Data Analysis StataCorp
4905 Lakeway Drive
MP - Parallel Edition College Station, Texas 77845 USA
800-STATA-PC http://www.stata.com
979-696-4600 stata@stata.com
979-696-4601 (fax)

Single-user 2-core Stata perpetual license:


Serial number: 501606203204
Licensed to: Juan Palomino
Juan Palomino

Notes:
1. Unicode is supported; see help unicode_advice.
2. More than 2 billion observations are allowed; see help obs_advice.
3. Maximum number of variables is set to 5000; see help set_maxvar.
4. New update available; type -update all-

1 . import excel "C:\Users\acer\Desktop\Mr hefnaoui\td_classe_variation_panel.xlsx", sheet("Feuil2") firstrow


(4 vars, 40 obs)

2 . browse

3 . reg yit xit


variable yit not found
r(111);

4 . reg Yit Xit

Source SS df MS Number of obs = 40


F(1, 38) = 95.21
Model 4607.44537 1 4607.44537 Prob > F = 0.0000
Residual 1838.98022 38 48.3942164 R-squared = 0.7147
Adj R-squared = 0.7072
Total 6446.42559 39 165.292964 Root MSE = 6.9566

Yit Coef. Std. Err. t P>|t| [95% Conf. Interval]

Xit 1.131589 .1159726 9.76 0.000 .8968151 1.366364


_cons 7.385193 3.502893 2.11 0.042 .2939576 14.47643

5 . tabulate i

i Freq. Percent Cum.

1 10 25.00 25.00
2 10 25.00 50.00
3 10 25.00 75.00
4 10 25.00 100.00

Total 40 100.00

6 . tabulate i,generate (ind)

i Freq. Percent Cum.

1 10 25.00 25.00
2 10 25.00 50.00
3 10 25.00 75.00
4 10 25.00 100.00

Total 40 100.00
CH13EX1 Thursday November 3 15:42:44 2022 Page 2

7 . tabulate i,generate(z)

i Freq. Percent Cum.

1 10 25.00 25.00
2 10 25.00 50.00
3 10 25.00 75.00
4 10 25.00 100.00

Total 40 100.00

8 . browse

9 . reg Yit Xit z1 z2 z3 z4,noconst

Source SS df MS Number of obs = 40


F(5, 35) = 988.87
Model 69429.629 5 13885.9258 Prob > F = 0.0000
Residual 491.478967 35 14.0422562 R-squared = 0.9930
Adj R-squared = 0.9920
Total 69921.108 40 1748.0277 Root MSE = 3.7473

Yit Coef. Std. Err. t P>|t| [95% Conf. Interval]

Xit 1.119029 .0635699 17.60 0.000 .989975 1.248082


z1 2.31501 2.278082 1.02 0.317 -2.309744 6.939763
z2 10.10964 2.230549 4.53 0.000 5.581381 14.63789
z3 2.385445 2.031037 1.17 0.248 -1.737779 6.508669
z4 16.17149 2.160928 7.48 0.000 11.78458 20.55841

10 .

You might also like