0% found this document useful (0 votes)
5 views3 pages

Bài Tập c2 - Stata

The document contains results from regression analyses conducted on two datasets, Table 2.4 and Table 2.5, each with 10 observations. For Table 2.4, the regression of y on x yields an R-squared of 0.9621, indicating a strong fit, while Table 2.5 shows an R-squared of 0.9116. Both analyses report significant coefficients for x, with p-values less than 0.001.

Uploaded by

k63.2412155286
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Bài Tập c2 - Stata

The document contains results from regression analyses conducted on two datasets, Table 2.4 and Table 2.5, each with 10 observations. For Table 2.4, the regression of y on x yields an R-squared of 0.9621, indicating a strong fit, while Table 2.5 shows an R-squared of 0.9116. Both analyses report significant coefficients for x, with p-values less than 0.001.

Uploaded by

k63.2412155286
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Bài 1:

. *For Table 2.4

. import excel "C:\Users\thanh\Documents\NĂM 2\KTL\stata 2.4 2.5.xlsx", sheet("Table 2.4") firstrow


clear

(2 vars, 10 obs)

. regress y x

Source | SS df MS Number of obs = 10

-------------+---------------------------------- F(1, 8) = 202.87

Model | 8552.72727 1 8552.72727 Prob > F = 0.0000

Residual | 337.272727 8 42.1590909 R-squared = 0.9621

-------------+---------------------------------- Adj R-squared = 0.9573

Total | 8890 9 987.777778 Root MSE = 6.493

------------------------------------------------------------------------------

y | Coefficient Std. err. t P>|t| [95% conf. interval]

-------------+----------------------------------------------------------------

x | .5090909 .0357428 14.24 0.000 .4266678 .591514

_cons | 24.45455 6.413817 3.81 0.005 9.664256 39.24483

------------------------------------------------------------------------------

. *For Table 2.5


. import excel "C:\Users\thanh\Documents\NĂM 2\KTL\stata 2.4 2.5.xlsx", sheet ("Table 2.5") firstrow
clear

(2 vars, 10 obs)

. regress y x

Source | SS df MS Number of obs = 10

-------------+---------------------------------- F(1, 8) = 82.49

Model | 10950.9121 1 10950.9121 Prob > F = 0.0000

Residual | 1061.98788 8 132.748485 R-squared = 0.9116

-------------+---------------------------------- Adj R-squared = 0.9005

Total | 12012.9 9 1334.76667 Root MSE = 11.522

------------------------------------------------------------------------------

y | Coefficient Std. err. t P>|t| [95% conf. interval]

-------------+----------------------------------------------------------------

x | .5760606 .0634246 9.08 0.000 .4298032 .722318

_cons | 17.1697 11.38114 1.51 0.170 -9.075258 43.41465

Bài 2:
Bài 3:

You might also like