- …
- Import Libraries and Load Data
- Data Preparation for PanelData Model
- PooledOLS model
- RandomEffects model
- BetweenOLS model
- Testing for Fixed Effects
- Testing for Time Effects
- First Differences
- Comparing between modelBetween, modelRE and modelPooled models
- Comparing between Robust, Entity and Entity-Time mothods
- Campute the lags of order 1 and 2 of first differences
- 2SLS as OLS
- IV 2SLS
1. Sargan test: Testing the absence of correlation between Z and U
2. Testing the correlation of Z and X_endog
3. Endogeneity testing using
DurbinandWu-Hausmantest of exogeneity 4. Augmented test for testing the exogeneity of log_fare 5. Instrumenting using two-stage least squares 6. Homoskedasticity – Heteroskedasticity- Breusch–Pagan test
- White test 7. Testing Autocorrelation
- Exogeneity test using
Sargan-Hansentest - Exogeneity test using the augmented regression approach
