SlideShare a Scribd company logo
1 of 11
Download to read offline
Cross sections, Time and Panel
Regression
CORRELATION
0.0042 0.4558 0.0440
ln_Industr~t 0.0892* 0.0232 0.0627* 1.0000
0.0000 0.0447
ln_Capital 0.9107* 0.0625* 1.0000
0.6520
ln_Wage -0.0141 1.0000
ln_Firm_Em~t 1.0000
ln_Fir~t ln_Wage ln_Cap~l ln_Ind~t
. pwcorr ln_Firm_Employment ln_Wage ln_Capital ln_Industry_Output , sig listwise star(5)
Source: Kaggle
POOLED OLS
_cons .3444242 .860552 0.40 0.689 -1.344217 2.033065
ln_Industry_Output .4791146 .1810233 2.65 0.008 .1238969 .8343324
ln_Capital .8090177 .0112526 71.90 0.000 .786937 .8310984
ln_Wage -.3669498 .0646708 -5.67 0.000 -.4938518 -.2400478
ln_Firm_Employment Coef. Std. Err. t P>|t| [95% Conf. Interval]
Total 1853.62881 1,030 1.79963962 Root MSE = .54471
Adj R-squared = 0.8351
Residual 304.717448 1,027 .296706376 R-squared = 0.8356
Model 1548.91136 3 516.303787 Prob > F = 0.0000
F(3, 1027) = 1740.12
Source SS df MS Number of obs = 1,031
. regress ln_Firm_Employment ln_Wage ln_Capital ln_Industry_Output
Source: Kaggle
MULTICOLLINEARITY
Mean VIF 1.01
ln_Wage 1.00 0.995715
ln_Industr~t 1.00 0.995690
ln_Capital 1.01 0.992333
Variable VIF 1/VIF
. vif
Source: Kaggle
/* Note: type vif immediately after running the pooled OLS
regression.*/
VIF>10 or (1/VIF)<0.10 indicates trouble, if so then you
may delete the troubling independent variable.
SPECIFICATION ERROR
_cons -.002207 .0225843 -0.10 0.922 -.0465236 .0421095
_hatsq -.0059652 .0082826 -0.72 0.472 -.0222179 .0102874
_hat 1.016876 .0272088 37.37 0.000 .9634848 1.070267
ln_Firm_Em~t Coef. Std. Err. t P>|t| [95% Conf. Interval]
Total 1853.62881 1,030 1.79963962 Root MSE = .54431
Adj R-squared = 0.8354
Residual 304.56377 1,028 .296268259 R-squared = 0.8357
Model 1549.06504 2 774.53252 Prob > F = 0.0000
F(2, 1028) = 2614.29
Source SS df MS Number of obs = 1,031
. linktest
/* Note: type linktest immediately after running the pooled OLS regression
Ho: There is no specification error
Since, P value of _hatsq>0.05, @ 95% LOC for α=0.05, we do not reject the null and
conclude that, there is no specification error, and we expect that the model is
correctly specified.
Source: Kaggle
TESTING FOR NORMALITY
predict e, resid [then] kdensity e, normal [then] pnorm e [then] qnorm e
0
.2.4.6.8
-2 -1 0 1 2
Residuals
Kernel density estimate
Normal density
kernel = epanechnikov, bandwidth = 0.1085
Kernel density estimate
0.000.250.500.751.00
NormalF[(e-m)/s]
0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1)
-2-1
012
-2 -1 0 1 2
Inverse Normal
.
e 1,031 0.97020 19.323 7.343 0.00000
Variable Obs W V z Prob>z
Shapiro-Wilk W test for normal data
. swilk e
Ho: The distn of the residuals is
normal
Since, P<=0.05, @ 95% LOC for α=0.05, we reject the null
and conclude that, The distn of the residuals is not
normal. In practice, when we are dealing with really big
samples normality doesn’t represent much of a problem.
Source:Kaggle
PANEL REGRESSION
/* Declare Panel_ID : xtset Panel_ID variable year, yearly */ here Panel_ID variable is Industry_Code
F test that all u_i=0: F(8, 1019) = 56.45 Prob > F = 0.0000
rho .35231013 (fraction of variance due to u_i)
sigma_e .45520323
sigma_u .33572551
_cons 2.844049 .826946 3.44 0.001 1.221337 4.466761
ln_Capital .8632881 .0100616 85.80 0.000 .8435443 .8830319
ln_Wage -.6147252 .0765928 -8.03 0.000 -.7650228 -.4644275
ln_Industry_Output .1132458 .1658368 0.68 0.495 -.2121748 .4386665
ln_Firm_Employment Coef. Std. Err. t P>|t| [95% Conf. Interval]
corr(u_i, Xb) = -0.2603 Prob > F = 0.0000
F(3,1019) = 2480.08
overall = 0.8332 max = 206
between = 0.5707 avg = 114.6
within = 0.8795 min = 36
R-sq: Obs per group:
Group variable: Industry_C~e Number of groups = 9
Fixed-effects (within) regression Number of obs = 1,031
. xtreg ln_Firm_Employment ln_Industry_Output ln_Wage ln_Capital ,fe
Source:Kaggle
rho .34630852 (fraction of variance due to u_i)
sigma_e .45520323
sigma_u .33132218
_cons 2.776657 .8313633 3.34 0.001 1.147215 4.406099
ln_Capital .8623775 .0100485 85.82 0.000 .8426828 .8820721
ln_Wage -.6107086 .0759802 -8.04 0.000 -.7596271 -.46179
ln_Industry_Output .1196021 .1655413 0.72 0.470 -.204853 .4440572
ln_Firm_Employment Coef. Std. Err. z P>|z| [95% Conf. Interval]
corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000
Wald chi2(3) = 7443.42
overall = 0.8333 max = 206
between = 0.5708 avg = 114.6
within = 0.8795 min = 36
R-sq: Obs per group:
Group variable: Industry_C~e Number of groups = 9
Random-effects GLS regression Number of obs = 1,031
. xtreg ln_Firm_Employment ln_Industry_Output ln_Wage ln_Capital ,re
Source:Kaggle
Since the test is not conclusive, and there is neither significant industry nor significant
temporal effects, we could pool all the data and run an ordinary least squares (OLS)
regression model (Pooled regression model or Constant coefficients model).
(V_b-V_B is not positive definite)
Prob>chi2 = .
= 0.00
chi2(0) = (b-B)'[(V_b-V_B)^(-1)](b-B)
Test: Ho: difference in coefficients not systematic
B = inconsistent under Ha, efficient under Ho; obtained from xtreg
b = consistent under Ho and Ha; obtained from xtreg
ln_Capital .8623775 .8623775 0 0
ln_Wage -.6107086 -.6107086 0 0
ln_Industr~t .1196021 .1196021 0 0
fixed random Difference S.E.
(b) (B) (b-B) sqrt(diag(V_b-V_B))
Coefficients
anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale.
this is what you expect, or there may be problems computing the test. Examine the output of your estimators for
Note: the rank of the differenced variance matrix (0) does not equal the number of coefficients being tested (3); be sure
. hausman fixed random
/* type as below */
estimates store fixed
estimates store random
hausman fixed random
Source:Kaggle
HETEROSKEDASTICITY
/* xtgls depvar indepvars, igls panels(heteroskedastic)
. estimates store hetero
. xtgls depvar indepvars, igls
. local df = e(N_g) - 1
. lrtest hetero . , df(`df ‘ )
H0: Homoskedasticity */
Note: If P_ value is <=0.05 reject the H0 otherwise accept the H0
AUTOCORRELATION
/* findit xtserial ┘
Click on st0039 then click on click here to install */
xtserial dependent indep1 indp2…
H0: No serial correlation
If P_ value is <=0.05 reject the H0 otherwise accept the H0

More Related Content

Similar to Ab data

MULTICOLLINERITY.pptx
MULTICOLLINERITY.pptxMULTICOLLINERITY.pptx
MULTICOLLINERITY.pptxYanYingLoh
 
Iaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd Iaetsd
 
Linear models
Linear modelsLinear models
Linear modelsFAO
 
COAT3 Endterm SW1 Solns1
COAT3 Endterm SW1 Solns1COAT3 Endterm SW1 Solns1
COAT3 Endterm SW1 Solns1Mikee Bylss
 
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docxInstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docxdirkrplav
 
Compact goniophotometer
Compact goniophotometerCompact goniophotometer
Compact goniophotometer世满 江
 
Compact goniophotometer
Compact goniophotometerCompact goniophotometer
Compact goniophotometer世满 江
 
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...IRJET Journal
 
6 statistical quality control
6   statistical quality control6   statistical quality control
6 statistical quality controlIjan Rahman Ode
 
Durbib- Watson D between 0-2 means there is a positive correlati
Durbib- Watson D between 0-2 means there is a positive correlatiDurbib- Watson D between 0-2 means there is a positive correlati
Durbib- Watson D between 0-2 means there is a positive correlatiAlyciaGold776
 
An Analysis of the Accuracies of the AC50 Estimates of Dose-Response Curve Mo...
An Analysis of the Accuracies of the AC50 Estimates of Dose-Response Curve Mo...An Analysis of the Accuracies of the AC50 Estimates of Dose-Response Curve Mo...
An Analysis of the Accuracies of the AC50 Estimates of Dose-Response Curve Mo...raym2sigmaxi
 
Cobb Douglas production function
Cobb Douglas production functionCobb Douglas production function
Cobb Douglas production functionSuniya Sheikh
 
Factors influencing the Human Development Index (HDI) using Multiple Linear R...
Factors influencing the Human Development Index (HDI) using Multiple Linear R...Factors influencing the Human Development Index (HDI) using Multiple Linear R...
Factors influencing the Human Development Index (HDI) using Multiple Linear R...apanugan
 

Similar to Ab data (20)

Acceptance sampling Q&A
Acceptance sampling Q&AAcceptance sampling Q&A
Acceptance sampling Q&A
 
MULTICOLLINERITY.pptx
MULTICOLLINERITY.pptxMULTICOLLINERITY.pptx
MULTICOLLINERITY.pptx
 
Iaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pid
 
Mnistauto 3
Mnistauto 3Mnistauto 3
Mnistauto 3
 
Linear models
Linear modelsLinear models
Linear models
 
ERF Training Workshop Panel Data 3
ERF Training WorkshopPanel Data 3ERF Training WorkshopPanel Data 3
ERF Training Workshop Panel Data 3
 
Ch15
Ch15Ch15
Ch15
 
Lect24 hmm
Lect24 hmmLect24 hmm
Lect24 hmm
 
COAT3 Endterm SW1 Solns1
COAT3 Endterm SW1 Solns1COAT3 Endterm SW1 Solns1
COAT3 Endterm SW1 Solns1
 
Project final control
Project final controlProject final control
Project final control
 
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docxInstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
InstructionsView CAAE Stormwater video Too Big for Our Ditches.docx
 
Compact goniophotometer
Compact goniophotometerCompact goniophotometer
Compact goniophotometer
 
Compact goniophotometer
Compact goniophotometerCompact goniophotometer
Compact goniophotometer
 
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...
 
6 statistical quality control
6   statistical quality control6   statistical quality control
6 statistical quality control
 
Durbib- Watson D between 0-2 means there is a positive correlati
Durbib- Watson D between 0-2 means there is a positive correlatiDurbib- Watson D between 0-2 means there is a positive correlati
Durbib- Watson D between 0-2 means there is a positive correlati
 
DC servo motor
DC servo motorDC servo motor
DC servo motor
 
An Analysis of the Accuracies of the AC50 Estimates of Dose-Response Curve Mo...
An Analysis of the Accuracies of the AC50 Estimates of Dose-Response Curve Mo...An Analysis of the Accuracies of the AC50 Estimates of Dose-Response Curve Mo...
An Analysis of the Accuracies of the AC50 Estimates of Dose-Response Curve Mo...
 
Cobb Douglas production function
Cobb Douglas production functionCobb Douglas production function
Cobb Douglas production function
 
Factors influencing the Human Development Index (HDI) using Multiple Linear R...
Factors influencing the Human Development Index (HDI) using Multiple Linear R...Factors influencing the Human Development Index (HDI) using Multiple Linear R...
Factors influencing the Human Development Index (HDI) using Multiple Linear R...
 

Recently uploaded

Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...gajnagarg
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...gajnagarg
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...amitlee9823
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...karishmasinghjnh
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraGovindSinghDasila
 

Recently uploaded (20)

Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men  🔝Ongole🔝   Escorts S...
➥🔝 7737669865 🔝▻ Ongole Call-girls in Women Seeking Men 🔝Ongole🔝 Escorts S...
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

Ab data

  • 1. Cross sections, Time and Panel Regression
  • 2. CORRELATION 0.0042 0.4558 0.0440 ln_Industr~t 0.0892* 0.0232 0.0627* 1.0000 0.0000 0.0447 ln_Capital 0.9107* 0.0625* 1.0000 0.6520 ln_Wage -0.0141 1.0000 ln_Firm_Em~t 1.0000 ln_Fir~t ln_Wage ln_Cap~l ln_Ind~t . pwcorr ln_Firm_Employment ln_Wage ln_Capital ln_Industry_Output , sig listwise star(5) Source: Kaggle
  • 3. POOLED OLS _cons .3444242 .860552 0.40 0.689 -1.344217 2.033065 ln_Industry_Output .4791146 .1810233 2.65 0.008 .1238969 .8343324 ln_Capital .8090177 .0112526 71.90 0.000 .786937 .8310984 ln_Wage -.3669498 .0646708 -5.67 0.000 -.4938518 -.2400478 ln_Firm_Employment Coef. Std. Err. t P>|t| [95% Conf. Interval] Total 1853.62881 1,030 1.79963962 Root MSE = .54471 Adj R-squared = 0.8351 Residual 304.717448 1,027 .296706376 R-squared = 0.8356 Model 1548.91136 3 516.303787 Prob > F = 0.0000 F(3, 1027) = 1740.12 Source SS df MS Number of obs = 1,031 . regress ln_Firm_Employment ln_Wage ln_Capital ln_Industry_Output Source: Kaggle
  • 4. MULTICOLLINEARITY Mean VIF 1.01 ln_Wage 1.00 0.995715 ln_Industr~t 1.00 0.995690 ln_Capital 1.01 0.992333 Variable VIF 1/VIF . vif Source: Kaggle /* Note: type vif immediately after running the pooled OLS regression.*/ VIF>10 or (1/VIF)<0.10 indicates trouble, if so then you may delete the troubling independent variable.
  • 5. SPECIFICATION ERROR _cons -.002207 .0225843 -0.10 0.922 -.0465236 .0421095 _hatsq -.0059652 .0082826 -0.72 0.472 -.0222179 .0102874 _hat 1.016876 .0272088 37.37 0.000 .9634848 1.070267 ln_Firm_Em~t Coef. Std. Err. t P>|t| [95% Conf. Interval] Total 1853.62881 1,030 1.79963962 Root MSE = .54431 Adj R-squared = 0.8354 Residual 304.56377 1,028 .296268259 R-squared = 0.8357 Model 1549.06504 2 774.53252 Prob > F = 0.0000 F(2, 1028) = 2614.29 Source SS df MS Number of obs = 1,031 . linktest /* Note: type linktest immediately after running the pooled OLS regression Ho: There is no specification error Since, P value of _hatsq>0.05, @ 95% LOC for α=0.05, we do not reject the null and conclude that, there is no specification error, and we expect that the model is correctly specified. Source: Kaggle
  • 6. TESTING FOR NORMALITY predict e, resid [then] kdensity e, normal [then] pnorm e [then] qnorm e 0 .2.4.6.8 -2 -1 0 1 2 Residuals Kernel density estimate Normal density kernel = epanechnikov, bandwidth = 0.1085 Kernel density estimate 0.000.250.500.751.00 NormalF[(e-m)/s] 0.00 0.25 0.50 0.75 1.00 Empirical P[i] = i/(N+1) -2-1 012 -2 -1 0 1 2 Inverse Normal . e 1,031 0.97020 19.323 7.343 0.00000 Variable Obs W V z Prob>z Shapiro-Wilk W test for normal data . swilk e Ho: The distn of the residuals is normal Since, P<=0.05, @ 95% LOC for α=0.05, we reject the null and conclude that, The distn of the residuals is not normal. In practice, when we are dealing with really big samples normality doesn’t represent much of a problem. Source:Kaggle
  • 7. PANEL REGRESSION /* Declare Panel_ID : xtset Panel_ID variable year, yearly */ here Panel_ID variable is Industry_Code F test that all u_i=0: F(8, 1019) = 56.45 Prob > F = 0.0000 rho .35231013 (fraction of variance due to u_i) sigma_e .45520323 sigma_u .33572551 _cons 2.844049 .826946 3.44 0.001 1.221337 4.466761 ln_Capital .8632881 .0100616 85.80 0.000 .8435443 .8830319 ln_Wage -.6147252 .0765928 -8.03 0.000 -.7650228 -.4644275 ln_Industry_Output .1132458 .1658368 0.68 0.495 -.2121748 .4386665 ln_Firm_Employment Coef. Std. Err. t P>|t| [95% Conf. Interval] corr(u_i, Xb) = -0.2603 Prob > F = 0.0000 F(3,1019) = 2480.08 overall = 0.8332 max = 206 between = 0.5707 avg = 114.6 within = 0.8795 min = 36 R-sq: Obs per group: Group variable: Industry_C~e Number of groups = 9 Fixed-effects (within) regression Number of obs = 1,031 . xtreg ln_Firm_Employment ln_Industry_Output ln_Wage ln_Capital ,fe Source:Kaggle
  • 8. rho .34630852 (fraction of variance due to u_i) sigma_e .45520323 sigma_u .33132218 _cons 2.776657 .8313633 3.34 0.001 1.147215 4.406099 ln_Capital .8623775 .0100485 85.82 0.000 .8426828 .8820721 ln_Wage -.6107086 .0759802 -8.04 0.000 -.7596271 -.46179 ln_Industry_Output .1196021 .1655413 0.72 0.470 -.204853 .4440572 ln_Firm_Employment Coef. Std. Err. z P>|z| [95% Conf. Interval] corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000 Wald chi2(3) = 7443.42 overall = 0.8333 max = 206 between = 0.5708 avg = 114.6 within = 0.8795 min = 36 R-sq: Obs per group: Group variable: Industry_C~e Number of groups = 9 Random-effects GLS regression Number of obs = 1,031 . xtreg ln_Firm_Employment ln_Industry_Output ln_Wage ln_Capital ,re Source:Kaggle
  • 9. Since the test is not conclusive, and there is neither significant industry nor significant temporal effects, we could pool all the data and run an ordinary least squares (OLS) regression model (Pooled regression model or Constant coefficients model). (V_b-V_B is not positive definite) Prob>chi2 = . = 0.00 chi2(0) = (b-B)'[(V_b-V_B)^(-1)](b-B) Test: Ho: difference in coefficients not systematic B = inconsistent under Ha, efficient under Ho; obtained from xtreg b = consistent under Ho and Ha; obtained from xtreg ln_Capital .8623775 .8623775 0 0 ln_Wage -.6107086 -.6107086 0 0 ln_Industr~t .1196021 .1196021 0 0 fixed random Difference S.E. (b) (B) (b-B) sqrt(diag(V_b-V_B)) Coefficients anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale. this is what you expect, or there may be problems computing the test. Examine the output of your estimators for Note: the rank of the differenced variance matrix (0) does not equal the number of coefficients being tested (3); be sure . hausman fixed random /* type as below */ estimates store fixed estimates store random hausman fixed random Source:Kaggle
  • 10. HETEROSKEDASTICITY /* xtgls depvar indepvars, igls panels(heteroskedastic) . estimates store hetero . xtgls depvar indepvars, igls . local df = e(N_g) - 1 . lrtest hetero . , df(`df ‘ ) H0: Homoskedasticity */ Note: If P_ value is <=0.05 reject the H0 otherwise accept the H0
  • 11. AUTOCORRELATION /* findit xtserial ┘ Click on st0039 then click on click here to install */ xtserial dependent indep1 indp2… H0: No serial correlation If P_ value is <=0.05 reject the H0 otherwise accept the H0