Professional Documents
Culture Documents
Which Model Fits The Data Better
Which Model Fits The Data Better
1. The same y
2
Different number of Xs => Based on adjusted – R
Example:
Model 2 fits the data better because the adj R-square (𝑅̅2) is higher
2. The same y
2
The same number of Xs => Based on R
Example:
2 2
rdintens = β0 + β1sales + u R =0.148, 𝑅̅ =0.09
2
Model 2 fits the data better because the R-square (R ) is higher
2
3. Different forms of y (ex: log y and y) => Find the new R for the log model, and then compare R2
2 ̂)
The same Xs ̂ 𝟐 /𝟐)*exp(𝒍𝒐𝒈𝒚
[corr(y,𝒚̂ )] while 𝒚̂ = exp(𝝈
Example:
Open CEOSAL1.DTA
Stata command:
predict lnsalaryhat, xb
display r_square=0.2210^2
Answer:
Hence, the model 2 fits the data better because the R-square (R2) is higher