KZbin recently changed the way my content will be monetised. My channel now needs 1,000 subscribers. So it would be amazing if you show your support by both watching my videos and subscribing to my channel if you haven’t done so already. Monetising my videos allows me to invest back into the channel with some new equipment so this small gesture from you will be extremely huge for me. Many thanks for your support….CrunchEconometrix loves to teach, support my Channel with your subscription and sharing my videos with your cohorts.
@ashnagangoo67286 жыл бұрын
Dear Mme, regarding the optimal lag, for one of my variables, for 4 countries, it is 0 and for the remaining 4 countries, it is 1.. Which lag should i choose in this case please?
@stonioheugi24825 жыл бұрын
How can we test the breusch_godfrey test in panel?
@CrunchEconometrix5 жыл бұрын
@@ashnagangoo6728 Hi Ashma, please follow my guide and explanation in choosing the optimal lags. May I know from where (location) you are reaching me?
@CrunchEconometrix5 жыл бұрын
@@stonioheugi2482 For panel ARDL, you test for each country using estat bgodfrey. Kindly watch my time series ARDL videos for more on diagnostic tests. Thanks....may I know from where (location) you are reaching me?
@omduttdixit34335 жыл бұрын
how can i apply the code when i am dealing with data of only one country?
@moviesanddramakorea2 жыл бұрын
I came here after your reply to my comment on the other video and all I can say is that God would continue to keep and uphold you Prof. You are a blessing. I wish I had seen this video before telling my professor that I would prefer to work on Synthetic control methods rather than ARDL.
@CrunchEconometrix2 жыл бұрын
Thanks, Kezia for your encouraging feedback...deeply appreciated and 🥰🙏
@jimmykamande24164 жыл бұрын
Thanks Prof. From your tutorial my understanding of Econometrics has become so much easy. Keep doing what you are doing. God bless.
@CrunchEconometrix4 жыл бұрын
Thanks, Jimmy for the encouraging feedback. Deeply appreciated! Please may I know from where (location) you are reaching me?
@mimio0084 жыл бұрын
Professor, your method is brilliant. I admire you so much and thank you for your effort and generosity. Wish you the best.
@CrunchEconometrix4 жыл бұрын
You are very welcome, Mimi!...glad to hear the positive feedback. Thanks.
@manuellatonga37622 жыл бұрын
thank you very much for these videos Prof, a real gold mine
@CrunchEconometrix2 жыл бұрын
You are welcome, Manuella 🙏
@selen70092 жыл бұрын
Thank you so much professor! I greatly benefit from your videos. I wanted to chip in with coding. I use bys country: ardl x y z, bic instead of forval i. If it stops running due to an error for a specific country, then bys country, rc0: ardl will work non-stop.
@CrunchEconometrix2 жыл бұрын
Thanks for this, Selen!
@moviesanddramakorea Жыл бұрын
Hello selen, please can you explain succintly. This code and the one professor talked about is not working for me
@mosh713 жыл бұрын
Stata show me a message saying "unrecognized command: ardl r(199); when I tried to run the following based on what I saw at 2:09 forval i = 1/10{ ardl y x1 x2 x3 x4 x5 x6 x7 if (c_id=='i'), maxlag(1 1 1 1 1 1 1) matrix list e(lags) di } Pls help me. What should I do? Thank you professor and others here
@CrunchEconometrix3 жыл бұрын
Hi Mo, you did not install the "ardl" syntax. Type "help ardl" in the COMMAND WINDOW and follow the prompts.
@TheHoney2honey3 жыл бұрын
excellent video. Can you guide that you have identified the optimal lags but did not use anywhere throughout these vides on Panel ARDL?
@CrunchEconometrix3 жыл бұрын
I used it in the lr(). Watch the video again. Thanks.
@willemvandermee1643 Жыл бұрын
Hello! Thank you for the very instructive video - I am wondering how do I write the Stata code for the first difference?
@CrunchEconometrix Жыл бұрын
Hi Willem, this video details how to estimate panel ARDL. Shows what needs to be done.
@haddaderadra23104 жыл бұрын
thank you for your video, je vous remercie beaucoup Madame , vous m'avez aidez
@CrunchEconometrix4 жыл бұрын
U're welcome, Hadda. Please may I know from where (location) you are reaching me?
@haddaderadra23104 жыл бұрын
@@CrunchEconometrix thanks, i follow you from Algeria
@EdwardAtiase Жыл бұрын
Dear Prof, thank you very much for making econometrics practical to me. However, in performing the Hausman (1978) test, I am unable to run the command, it keeps saying ECT is in the list of predictors. I will be glad if you could shed some light on this please. Thank you.
@EdwardAtiase Жыл бұрын
I am using STATA 15 please.
@EdwardAtiase Жыл бұрын
. xtpmg d.gdpg d.sttuds d.mcdfgdp d.stocgdp d.rq d.tradegdp d.fdigdp, lr(l.gdpg sttuds mcdfgdp stocgdp rq tradeg > dp fdigdp) ec(ECT) replace mg invalid new variable name; variable name ECT is in the list of predictors r(110); This what i get from STATA please
@CrunchEconometrix Жыл бұрын
I have not experienced such when I used the command, though it's a long time ago. The error could be due to several Stata updates. I suggest you post this to Statalist.org to get constructive feedback from other Stata users.
@knowledgebulb62322 ай бұрын
same here , how did you solve the issue?
@aniksaha99252 жыл бұрын
What would happen jf hausman DFE pmg, sigmmore generates negative "chi2(3) =0.9792" value? Which model should I take then?
@CrunchEconometrix2 жыл бұрын
Hi Anik, I explained the decision criteria. You may want to watch the clip again. Thanks
@mimiemohamad3 жыл бұрын
Hi Dr, if my probability of Housman test is -12.05, and there are a sentence of "chi2 model fitted on these data fails to meet the asymptotic assumptions of the Hausman test; see suest for a generalized test" What does it mean? Thank you so much for your feedback
@CrunchEconometrix3 жыл бұрын
Hi Mimie, what code did you use?
@mimiemohamad3 жыл бұрын
@@CrunchEconometrix I follow your code, but probably I mistakenly put it as 'hausman pmg mg, sigmamore'. Could it be due to this error?
@CrunchEconometrix3 жыл бұрын
Use 'hausman mg pmg, sigmamore'
@mimiemohamad3 жыл бұрын
@@CrunchEconometrix thank you! 😊
@sabrososh4 жыл бұрын
Hello CruchEconometrix. Thank you so much for your videos. They are a generous and outstanding contribution! Please, can you help with the following question about the Hausman test? When I run the Hausman test between PMG and MG, the Prob>chi2 = 0.0483, which means that MG specification is preferred over PMG. When I run DFE versus MG, the Prob>chi2 = 0.9994, meaning that DFE is preferred over MG. But, when I run the Hausman test between PMG and DFE, the Prob>chi2 = 0.9924, so PMG will be preferred over DFE. This situation is strange because MG is better than PMG, PMG is better than DFE, and DFE is better than MG. It’s like I am going in circles. What specification should I choose for my ARDL model? Thank you very much in advance.
@CrunchEconometrix4 жыл бұрын
Hi, Sabrososh, the 3 techs have different underlying assumptions. You must know which one you want to use to avoid engaging these tests which can be confusing.
@sabrososh4 жыл бұрын
@@CrunchEconometrix Thank you very much :-)
@lilsamurai63634 жыл бұрын
Hi professor. Can ARDL bounds test for cointegration be applied to panel data? And also, can ARDL be used if the dependent variable is I(0)? Many thanks!!
@CrunchEconometrix4 жыл бұрын
Hi Nayaz, Bounds test is only applicable to time series ARDL and the literature is not clear as to whether the depvar should be I(0) or I(1) but the populist agree that it should be I(1).
@lilsamurai63634 жыл бұрын
@@CrunchEconometrix thank you very much Professor :D
@fairafna3 жыл бұрын
Hi Dr, I hope you are in a good health. I have a question that I hope to receive your feedback on. From my Hausman test between PMG and MG, it shows PMG is preferred. Do I need to run a second Hausman test on PMG and DFE to ascertain which estimator is preferred? I did both tests, and on the second Hausman test, I got DFE is preferred. Is my understanding of the DFE estimator is correct -- it means the coefficient cointegrating vector (long-run) are the same for all countries? Same goes to the speed of adjustment coeff and short coeff - they the same across countries?
@CrunchEconometrix3 жыл бұрын
Hi Faizal, kindly go through the videos for the underlying differences across MG, PMG, and DFE and once you know the one to deploy (given the Hausman test), you can proceed with your analyses. Thanks.
@CrunchEconometrix3 жыл бұрын
Hi Faizal, kindly go through the videos for the underlying differences across MG, PMG, and DFE and once you know the one to deploy (given the Hausman test), you can proceed with your analyses. Thanks.
@TheDominock3 жыл бұрын
Hello CrunchEconometrix and MA Faizal, may I ask you a question if you had been getting any errors while working with the following codes?: xtpmg d.lgdppercap d.fdi d.ms d.dinv d.crprvt d.hdi, lr(l.lgdppercap fdi ms dinv crprvt hdi) ec(ECT) replace mg xtpmg d.lgdppercap d.fdi d.ms d.dinv d.crprvt d.hdi, lr(l.lgdppercap fdi ms dinv crprvt hdi) ec(ECT) replace pmg Some of the possible errors I get are: 1)invalid new variable name; variable name ECT is in the list of predictors 2) If I remove "ec(ECT) replace (mg or pmg)" I enter an infinite loop with the following output: "Iteration 0: log likelihood = 355.3414 (not concave) Iteration 1: log likelihood = 377.10051 (not concave)..." Any suggestions? Thank you
@navjotkaur11242 жыл бұрын
Respected Professor, while trying to run the command for optimal lag length, the software is showing problem with 'i'. My cross-sections are 205 and I have given the label to companies as "id". So i am typing the command as : forval i = 1/205 { ardl s r iio if (id== 'i'), max lag (2 2 2 2)
@CrunchEconometrix2 жыл бұрын
Hi Navjot, did you watch the introductory video on panel ARDL? Please do if you have not to know that panel ARDL works best with N
@unbeliveable10004 жыл бұрын
Dear Prof. Ngozy, thank you for your video series on Panel ARDL. It really helps getting the thesis started. However, I have two questions: 1. Why do you log some Variables now and not pre unitroot testing and what is the reasoning behind it? 2. Why do you add all variables in differences (in Step 7), although some are stationary in levels (and the ardl is able to deal with I(0) and I(1) variables. Thank you very much and I hope you stay healthy in the difficult times.
@CrunchEconometrix4 жыл бұрын
Taking logs is discretionary. I also performed URT to be sure none is I(2). Using the difference operator is the way the syntax is written.
@motazabd-alkareem62862 жыл бұрын
amazing explanation, many thanks to you I have 2 questions please: first, if the result of Hausman test is "fails to meet the asymptotic assumptions of the Hausman test" because of negative sign of chi2, then can I write pmg before mg (namely "hausman pmg mg, sigmamore") to avoid that problem? second, is it ok to use pedroni test and pmg method when some variables are I(0) and others are I(1)? thanks
@CrunchEconometrix2 жыл бұрын
Hi Motaz, thanks for the encouraging feedback. Yes, flip around the Hausman test syntax.
@motazabd-alkareem62862 жыл бұрын
@@CrunchEconometrix thank you so much
@samiaansari68962 жыл бұрын
Thank you so much Professor! I have a question..Can I perform Pooled Mean Group (PMG) panel ARDL test including a structural break dummy variable? If yes, then how can I interpret the dummy coefficient in the result?. Kindly provide an answer for the same, I shall be grateful to you. Your help is highly appreciated.
@CrunchEconometrix2 жыл бұрын
Hi Samia, I haven't done any panel ARDL analysis with dummy variables. You may want to check out other online resources. However, watch my videos on DUMMY VARIABLES for interpretations of results.
@samiaansari68962 жыл бұрын
@@CrunchEconometrix Thank you for your response!!
@abwayman2 жыл бұрын
Hello Dr If we were to do Hausman test between DFE and PMG, which way should it be written 1) or 2) below? 1) hausman pmg DFE, sigmamore OR 2) hausman DFE pmg, sigmamore Thanks!
@CrunchEconometrix2 жыл бұрын
Ahmad, anyway is correct. That's what I do
@KeziaSpeaksHerMind2 жыл бұрын
Thank you ma.. I tried runnig the hausman test however, the pmg part gave me a very long itireation. How can I shorten this?
@CrunchEconometrix2 жыл бұрын
To the best of my knowledge, you have no control over the iteration process. But you can check out other online resources for more information about this. Thanks
@pragatidixit26910 ай бұрын
Dear Prof. Ngozi, I am facing problem in determining the optimal lag length. I am working on a dataset of 10 countries for the time period 1997- 2021. I have typed the command as: forval i=1/10{ ardl lnprop lnLP lnlife lnGDP lnHI if (c_id== 'i'), maxlag(2 2 2 2 2) matrix list e (lags) di } But Stata is showing 'i' as invalid name. Could you please help me on this?
@CrunchEconometrix9 ай бұрын
Pragati, the reason is because you didn't create IDs for the countries.
@knowledgebulb62322 ай бұрын
don't use the bracket after if and see
@gynendrabhandari1106Ай бұрын
@pragatidixit289 please let me know if you have learn this tutorial. I'm still hanging with these steps of PANEL ARDL
@solomonbola2493 Жыл бұрын
hello ma, do you mean that the rule of thumb for determining cointegration in Pedroni(2004) is that the absolute term should be greater than 2 since Stata does not present the p-value?...thank you ma
@CrunchEconometrix Жыл бұрын
Hi Solomon, YES.
@mehmetakyol43323 жыл бұрын
Dear professor, I have a trouble about cointegration test. In my panel data variables depvar is I(1) and indep var is I(0). Can I use Westerlund cointegration test before performing pmg and mg? In some articles it implies that in that kind of stiation durbin hausman cointegration or bound test (f test) have to use to determine cointegraiton. I am really confused. Could you please kindly response . Thank you very much
@CrunchEconometrix3 жыл бұрын
Hi Mehmet, I have responded to you on this on a different thread.
@Mllerourou91 Жыл бұрын
Thank you, Prof, for these videos. while using the command for Hausman test p (N=6 and T=32), in stata it is showing this error, xtpmg d.mur d.lngdp d.lninf d.lnintr d.lntradopen, lr(l.mur lngdp lninf lnintr lntradope > n) ec(ECT) replace mg expression (-_b[lngdp]/_b[L.mur]) evaluates to missing r(498); What could be the problem? Thank you
@CrunchEconometrix Жыл бұрын
I have not experienced such an error message. I suggest you post this on Statalist.org for more constructive feedback from other Stata users.
@alicehuong87153 жыл бұрын
Is there any other options for choosing the optimal lag for panel ardl?
@CrunchEconometrix3 жыл бұрын
Not to my knowledge.
@ECHTisaconcept6 жыл бұрын
Another great video! They are all very helpful. Just a question, if my dependent variable results in having to have 1 lag how would I write this in my model? Would I put: Y^-1_it = X_it + error
@CrunchEconometrix6 жыл бұрын
That's why I included refs at the end of the video for guidance. Check them for model specifications.
@TheDominock3 жыл бұрын
Hello, I am working with long panel T=30,N=20 and Hausman test indicates that MG is the preferred one over MG, but the results given by MG are very insignificant and hopeless to interpret, the only good thing is that ECT is -0.11 signifiant at 1%, but no long run or short run coefficients are significant, while the results for PMG show long-run coefficients to be significant even at 1%, having ECT also significant at 1% too. While using MG I get results against the existing literature, should I still stick to MG in your opinion, madame? Thank you...
@CrunchEconometrix3 жыл бұрын
Use both results with justifications.
@TheDominock3 жыл бұрын
@@CrunchEconometrix Thank you very much!
@juliusakor86174 ай бұрын
Prof, please what if I am doing for one country and 53 companies in that country what’s the function is it forval 1/53? Or 1/1?
@CrunchEconometrix4 ай бұрын
One country equates to TIME SERIES analysis. So, watch my Time Series for guides.
@KeziaSpeaksHerMind2 жыл бұрын
I was trying to run Hausman test for dfe and mg. The resultI got said "chi2 model fitted on these data fails to meet the asymptotic assumptions of the Hausman test; see suest for a generalized test". What do I do prof
@CrunchEconometrix2 жыл бұрын
Flip the test around.
@KeziaSpeaksHerMind2 жыл бұрын
@@CrunchEconometrix Thank you ma. One more question Prof. I am trying to run PMG/ARDL on Eviews. My dependent variable is 1(1) while independent is a mixture of 1(1) and 1(0). I noticed that eviews automatically takes another difference of my already differenced variable when giving me results for short run. What do you think i should do? Should I just analyze my data with the level variable(not differenced) and if I do, won;t this affect the long run estimation because the long run estimation comes out the same way I put it on the command.
@CrunchEconometrix2 жыл бұрын
I am not familiar with the EViews approach for PMG analysis. It is better you post your query to an EViews platform for more constructive feedback. Thanks
@oluwatobiogunnusi83772 жыл бұрын
On the assumption that I'm using stata for the first time on my laptop, is there any package I will install first before performing xtpmg models?
@CrunchEconometrix2 жыл бұрын
Oluwatobi, type "help xtpmg" and follow the Stata prompts on what you need to do.
@oluwatobiogunnusi83772 жыл бұрын
@@CrunchEconometrix Alright. Thanks ma. Unfortunately, code for the lag length selection criteria is showing error, indicating that the ardl loop isn't well specified.
@CrunchEconometrix2 жыл бұрын
Hi Oluwatobi, panel ARDL is efficient when N
@iqbalmarri31924 жыл бұрын
madam thank you very much. i have a question please; we do not ardl model work if we inser more control variables. if the number of explanatiry variables increase from 4 to 5 ardl stops working. i have check a couple of paper, in every paper there are 3 to 4 independent (explanatory or control variables). i thought there is some problem with my data but i changed data set, yet i have the same problem. thank
@CrunchEconometrix4 жыл бұрын
Use few variables otherwise the model breaks down.
@iqbalmarri31924 жыл бұрын
@@CrunchEconometrix thank you very much madam.
@CrunchEconometrix4 жыл бұрын
@@iqbalmarri3192 U're very welcome. I will appreciate if you share my videos with your friends and colleagues. May God bless you as you do, amen!
@badiahahmed20854 жыл бұрын
Thank you for these great videos, I have a question please, Why did not you add a log to gdpgr variable?
@CrunchEconometrix4 жыл бұрын
Thanks Badia, for the positive feedback. Deeply appreciated! I didn't use the log of GDPGR cos it's in growth rate (which is the log difference of GDP).
@badiahahmed20854 жыл бұрын
@@CrunchEconometrix Thank you for your response, another question please, my study like your example, finance-growth nexus, the dependent variable is real GDP per capita and independent variables are financial index, inflation, trade, government expenditure and investment. I follow your example where I have added a log to all independent variables but I have not added the log to real GDP per capita. Is that OK for my study? Thank you
@CrunchEconometrix4 жыл бұрын
You can use the log of per capita GDP. Please may I know from where (location) you are reaching me reaching me?
@ronakparikh6536 Жыл бұрын
Hello, thank you very much for this! I have one question: if in Step 6, I find there is no cointegration, what does this mean? Should I go forward and do steps 7 and 8?
@CrunchEconometrix Жыл бұрын
Ronak, if that's the case then perform only the underlying analysis and diagnostics.
@same1745 жыл бұрын
Hi again Ngozi, I have read the references you provided carefully. I have learned that N could be small or large for PMG. Since it's considered fixed in the procedure. However, T must be large enough for asymptotic purposes. What exactly large enough means here and how could I determine it? I have 7 countries for a period of 1994q1-2012q4. So in my paper I need to justify the sample size of T is large enough. I got reasonable results but probably I will be asked for large enough T. Thanks for your kind help as always.
@CrunchEconometrix5 жыл бұрын
Have at least 30 years observations.
@tshegangchipeya17145 жыл бұрын
@@CrunchEconometrix Thank you very much Prof for this answer. My data is 18 years (8 countries) and I keep getting error message saying the model fitted on these data fails to meet the asymptotic assumptions of the Hausman test.. I assume it is because my data is too small.
@CrunchEconometrix5 жыл бұрын
@@tshegangchipeya1714 Most likely. You can either increase the time span to 30years or transform the yearly data to quarterly. Refer to other online resources on how to do this. Thanks.
@tshegangchipeya17145 жыл бұрын
@@CrunchEconometrix Thank you Mam. After reading up, I have decided to do pooled OLS or FMOLS to avoid small sample bias. Thank you again, we appreciate your care!
@soosuklee982 жыл бұрын
Hello Professor, thank you for this detailed video. I have a question regarding on selecting the optimal lag for the panel ARDL model. I have 20 countries in my analysis. When I conduct Step 5. as shown, it shows that 10 countries show for lag 0 while 10 countries show for lag 1 for a particular variable. If this is the case which lag should I select?
@CrunchEconometrix2 жыл бұрын
Hi Soo, if it is the dependent variable you should take lag 1...if otherwise, you can take either lag 0 or 1
@soosuklee982 жыл бұрын
@@CrunchEconometrix Hello Professor, thank you for your help!
@gabrieltemesgen28773 жыл бұрын
Hi, for optimal lag selection, I run this command following your video. I found "sample may not include multiple panels". what is the mistake? Thank you for your help forval i= 1/18 { ardl tby fd gdpgr lreer fd2, maxlags (2 2 2 2 2) matrix list e(lags) di } sample may not include multiple panels r(459);
@CrunchEconometrix3 жыл бұрын
Hi Gabriel, click on the Stata error code for guide to correcting the problem. Thanks.
@nehajainjain82542 жыл бұрын
your videos are really helpful. I am facing an error could you please clarify it. while using the command for MG panel ARDL (N=20 and T=30), in stata it is showing an error "invalid new variable name; variable name ECT is in the list of predictors" and while determining the optimum lag length, I am using this command forval i = 1/10 { 2. ardl Lgdppc Ltrade if(c_id=='i'), maxlag(1 1 1 1) 3. Matrix list e(lags) 4. di 5. } but it is showing c_id not found and 'i' is not correctly specified.
@CrunchEconometrix2 жыл бұрын
Hi Neha, c_id is the country identifier. Please watch my videos on "Building a panel data" and "Reshape wide to long" on how to create ids. Thanks
@HaiYen-iw9jw22 күн бұрын
I am facing with this too, can you help me?
@HaiYen-iw9jw22 күн бұрын
in step 7 I am facing with a problem, in stata it is showing an error "invalid new variable name; variable name ECT is in the list of predictors" can u help me?
@CrunchEconometrix21 күн бұрын
That may be due to Stata bug since that code is User-written. I'd suggest that you post the comment on Statalist.org to get constructive feedback from other Stata users and programmers.
@bakytzhanzhaparov18463 жыл бұрын
Hi, professor. If my common optimal lag model is (2 1 1 1) then I run the following command for xtpmg for y=dep var, and a, b, c are indep var: xtpmg d.y d.a d.b d.c, lr(l2.y l.a l.b l.c) ec(ECT) replace pmg full is it correct? Or I have to write in long run part the following: lr(l.y l2.y a l.a b l.b c l.c) Can you answer me?
@CrunchEconometrix3 жыл бұрын
Hi Bakytzhan, I'm familiar with the 1,0,0,0 lag formation which I used in my videos. You may want to check out other online resources about your proposed lag structure.
@БакытжанЖапаров-г2р3 жыл бұрын
@@CrunchEconometrix Thanks for your soon reply. Can I just do it for 1,0,0,0 and write that I do not want to lose too many degrees of freedom in my dissertation?
@CrunchEconometrix3 жыл бұрын
That's exactly what I do of I happen to use the approach.
@bakytzhanzhaparov18463 жыл бұрын
@@CrunchEconometrix thanks, I see, your videos are guiding me through my dissertation journey. Thanks, cheers from Kazakhstan 🇰🇿
@CrunchEconometrix3 жыл бұрын
Good to hear, Bakytzhan ☺️
@sabashah11603 жыл бұрын
How to enter code for step 5 in stata as this is in few lines? I dnt get it
@CrunchEconometrix3 жыл бұрын
Hi Saba, the code is as indicated in the video.
@sabashah11603 жыл бұрын
I tried it to enter but no result
@CrunchEconometrix3 жыл бұрын
Not sure I can decipher what the problem is.
@aniksaha99252 жыл бұрын
xtpmg d.nplratio d.roa d.crar d.loan_to_asstes_ratio, lr(l. nplratio roa crar loan_to_assets_ratio) pmg replace This pmg sometimes gives hessian become unstable or asymmetric [iterations stretched up to 28], sometimes gives data. What to do?
@CrunchEconometrix2 жыл бұрын
Hi Anik, I have not encountered this so may not be able to guide you properly. I suggest you post it on Statalist.org for more constructive feedback. Thanks
@dhaouia16 жыл бұрын
Dear Dr CrunchEconometrix thank you very much for your videos . it is very helpful. however i did the same steps as yours in my first linear model but in got negative value of hausman test ano there is no probability of chi2 between MG and PMG so how can i know which method is better MG or PMG. Anther point dear Doctor, i am running the non linear model so when i type the FD and FDSQR(FD*FD) it shows that may be the variables are correlateed and no resluts how can i run the no linear model. thank you in advance
@CrunchEconometrix6 жыл бұрын
Hi Dhaouia, for the HT, switch the hypothesis around. That is, "hausman pmg mg, sigmamore". Unfortunately, I haven't done NARDL before once I do, I'll release videos on them.
@dhaouia16 жыл бұрын
@@CrunchEconometrix thank you very much. Appreciate your help
@dhaouia16 жыл бұрын
thank you for your promp reply. sorry but in case i get DFE id the apprpriate after geeting the hausman test resutls is there any issue ...most papers i have read the appropriate method is PMG.??...thank you in advance
@CrunchEconometrix6 жыл бұрын
@@dhaouia1 Yes, I've come across some summations on that but using PMG will depend on the objective of your research because MG, PMG and DFE all have different underlying assumptions as explained in my video. So, I'll advise you do more readings to know which estimator is best applicable to your work.
@MAX-ho6wg4 жыл бұрын
Thanks a lot for the great work you are doing. Could help me with how to use bootstrap sampling and estimation.
@CrunchEconometrix4 жыл бұрын
Hi Max, thanks for the positive feedback on my videos. Deeply appreciated! Unfortunately, I have no idea about bootstrapping. Please may I know from where (location) you are reaching me?
@MAX-ho6wg4 жыл бұрын
@@CrunchEconometrix Am writing from East Africa-Uganda. I thought I did have some ideas about bootstrap sampling and estimation. I'm trying to discover how it works. You are a great teacher. I like the way you explain the models and the findings.
@CrunchEconometrix4 жыл бұрын
@@MAX-ho6wg Thanks Max. I'm encouraged by your comments. Please tell your students and academic community in Uganda 🇺🇬 about my KZbin Channel😊
@emilienneyameogo35254 жыл бұрын
I tried it just yesterday. I think I installed 'xtwest' but check it in the 'help' section in stata
@lemakargar63566 жыл бұрын
Dear dr Crunch, may I ask why you use lndcf instead of dcf? do you take the logs of the variables when deciding on whether to use pmg or mg method? and why is that? because untill step 6 you used the variables in normal form.
@CrunchEconometrix6 жыл бұрын
Oftentimes, models behave better in logs. That may have influenced my decision in addition to the elasticity explanation.
@lemakargar63566 жыл бұрын
@@CrunchEconometrix thank you very much and thanks for the useful and well explained tutorials!
@lemakargar63566 жыл бұрын
i have one more quesstion and that's i want to test causality by using granger causality test. i used the code xtgcause dependent variable and independent variable, (aic) . but i am not sure how to interpret the results. below you will see the results: Dumitrescu & Hurlin (2012) Granger non-causality test results: -------------------------------------------------------------- Optimal number of lags (AIC): 1 (lags tested: 1 to 4). W-bar = 1.7352 Z-bar = 2.8476 (p-value = 0.0044) Z-bar tilde = 1.7956 (p-value = 0.0726) -------------------------------------------------------------- H0: migrationinflow does not Granger-cause lngdppercapita. H1: migrationinflow does Granger-cause lngdppercapita for at least one panelvar (countryid).
@CrunchEconometrix6 жыл бұрын
U're welcome, Lema...kindly share my videos with your academic and social media community :)
@CrunchEconometrix6 жыл бұрын
@@lemakargar6356 I've never performed this test before but interpreting any causal analysis is the same.The pvalues have given sufficient evidence AGAINST the null hypothesis. So, there's causality. Can you give me the Stata syntax used? I may try Dumitrescu & Hurlin (2012) Granger non-causality test this someday and do a video on it, if you don't mind. Thanks.
@geoffchen20434 жыл бұрын
Hi Prof, thanks for your videos! They are very helpful. I have a question. Can you perform the ARDL bound test in panel data. I have been researching on the internet for hours. I couldn't find anyone talk about this problem. But I have seen as papers performed bound test in panel data.
@CrunchEconometrix4 жыл бұрын
Hi Geoff, bounds test is only applicable to time series ARDL not panel ARDL...well, verify if those papers are published in high-impact Journals and if so, you can reference them even though using bound test in panel analysis is wrong. I may advise performing individual bounds test for each country but again what will be the rationale for that?
@geoffchen20434 жыл бұрын
Thanks Prof, Just want to confirm. Can Predroni cointegration test be used regardless of I(0), I(1), or both I(0) and I(1)?
@CrunchEconometrix4 жыл бұрын
Yes, but the dependent variable should be I(1).
@geoffchen20434 жыл бұрын
@@CrunchEconometrix What should I do if the dependent variable is not I(1)?
@CrunchEconometrix4 жыл бұрын
@@geoffchen2043 It must be I(1).
@meenakshigautam94579 ай бұрын
hi prof when i calculated mg it was fine but when i calculated pmg it is giving many itirations and data not concave result what should i do please help mam
@CrunchEconometrix9 ай бұрын
Meenakshi, MG and PMG have different iterations. So, don't expect the same outcome.
@HibaWorld4 жыл бұрын
Dear Dr. I am a PhD student from UK. Thank you very much for creating this amazing platform for learning and discussion for our statistical issues. I have a panel with 28 countries and 168 monthly time periods. I am following your panel ardl. However, I am having trouble at step 5 when I am trying to use the long code for choosing the most common lags. Stata gives me the error that invalid 'i'. My data is already in the long format and I have used xtset to tell Stata about the panel data presence. Could you kindly help me with this. Thank you.
@CrunchEconometrix4 жыл бұрын
Hi Nadia, thanks for the encouraging feedback. Deeply appreciated! The country identifier is "i". Is that the way your data is coded?
@HibaWorld4 жыл бұрын
@@CrunchEconometrix Thank you very much Prof. I have 28 EU countries data for 168 months(14 years), yes my data has country identifiers code and my data is in long format. When I run the next code xtpmg .....then in the oupput it mentions panel variable Panel variablei= CountryID Panel variable t= mydate I used xtset CountryID mydate to set panels. Here Country ID is 1,...,28, 1= Austria so on. I wrote my code for lag variables follows: forval i=1/28 { ardl (lnfatalacc lnpetrolpp lnGDP lnunemployment lntotVMT) if(CountryID == ‘i’), maxlag (2,2,2,2,2) matrix list e(lags) di } only unemployment is non-stationary and stationary after first difference. I tried going ahead without specifying lags but Hausman test does'not provide any good indication and asking me to go for guest. I tried random lags and Hausman gave better results. I know this is a long question. Many Thanks
@HibaWorld4 жыл бұрын
Dear Prof,. I found one of your reply on STATA forum and copied your code it worked. Thank you. You are awesome. www.statalist.org/forums/forum/general-stata-discussion/general/1355211-ardl-panel-model-in-stata forval i = 1/10{ ardl aa dollar if (country_code==`i'), maxlag(3 3) matrix list e(lags) di } Just one issue that Hausman test between mg and pmg non-significant and between pmg and Dfe significant. so does this mean I should pick DFE?
@CrunchEconometrix4 жыл бұрын
Glad to hear you resolved this, Nadia!💕👏🏽
@HibaWorld4 жыл бұрын
Thank you.
@MuhammadIshaq-cj8yf4 жыл бұрын
I found optimal lags for the variables but where we use those lags in the model?
@miralmaryam3 жыл бұрын
can u share the optimal lag exact command
@CrunchEconometrix3 жыл бұрын
They are as shown in the video.
@TheDominock3 жыл бұрын
@Muhammad Ishaq Hi Muhammad. Have you found the answer to your question? I am having the same issue. I can’t figure it out.
@sangitachaudhary26593 жыл бұрын
Hello professor , Thank you for this video it really helps a lot..one question : i got an issue while doing the lag selection as itshows the collinearity problem between two variable so is there any solution for this issue ..kindly guide me please !
@CrunchEconometrix3 жыл бұрын
Hi Sangita, that's a major issue with the panel ARDL technique. I usually reduce my RHS variables to 3 to minimize collinearity problems.
@hakanuslu27734 жыл бұрын
Hi Professor: could you explain why do you use original variables for the tests and then use logarithmic transformation of the variables in the pmg model? do you think we have to use logarithmic transformation of the variables in the diagnostics or other tests? many thanks for the videos and the channel
@CrunchEconometrix4 жыл бұрын
Hi Dr. Hakan, thanks for the encouraging feedback. Deeply appreciated! Taking log is at the discretion of the researcher. Even at that, it is advisable to take diagnostics using the forms of the variables used in the regression.
@yayadeomehamadjodalefe2695 жыл бұрын
is it mandatory to do a test which will enable you choose between DFE and PMG? if for instance DFE shows to be preferred through the Hausman test, can you proceed with PMG? and perhaps use the DFE to campare results?
@CrunchEconometrix5 жыл бұрын
Hi Yaya, sure you can do so....a form of robustness check. May I know from where (location) you are reaching me?
@FossongDerrick8 ай бұрын
Please how can I have the ado file since it's bearly invisible??
@CrunchEconometrix7 ай бұрын
Thanks for your enquiry. Kindly know that due to abuse and unethical conduct, Stata dofiles used in my videos are no longer free but available on my website upon payment. Here's the link cruncheconometrix.com/view/datashop.php The files don't cost much, just a token to maintain my website. Thanks for your understanding and patronage.
@kandavidndri59385 жыл бұрын
Hi Prof, thank you for your nice video. I am running a panel ardl regression using gdp per capita and remittances for 12 ECOWAS countries spanning from 1990 to 2015. I reached the step whereby I have to determine between MG or PMG estimator. After running the command, here is what I get: Iteration 0: log likelihood = 569.81216 could not calculate numerical derivatives flat or discontinuous region encountered Could you explain this? and How can I fix that issue? Thanks very much
@CrunchEconometrix5 жыл бұрын
Hi Kan, this is strange. Never encountered such. You can post your query on an econometric platform for more probable solution.
@hosamalsaeedi83795 жыл бұрын
Thank you for these great videos, I have panel data where N=6, T=40, and 2 variables Crude oil exports and Economic growth which is the dependent variable, I found that COE is non stationary with constant but it was stationary when I include the trend, what should I do?
@CrunchEconometrix5 жыл бұрын
Hi Hosam, thanks for the positive feedback on my videos. Deeply appreciated! 💕 (1) use with trend; (2) install ARDL command using either "ssc install ardl" or "help ardl". May I know from where (location) you are reaching me?
@hosamalsaeedi83795 жыл бұрын
Thank you very much, I did install the ARDL command and xtpedroni (which was not working) now every thing is fine. but, if I used with trend for COE the Variables ( both EG, COE) would be I(0), is that suitable to run ARDL? another issue is when I used the xtpmg command for mg and dfe I found the error (Maximum number of iterations exceeded). I'm from Yemen, and doing my master degree in Turkey, I want to express my appreciation for these wonderful and useful Channel.
@CrunchEconometrix5 жыл бұрын
@@hosamalsaeedi8379 Oh I see. (1) Take the 1st difference of COE with constant because the literature is not clear on using ARDL with only I(0) series. I'll advise you to read PSS (1999, 2001) for more insights. (2) the error message is often due to multicollinearity of the lags. Why not include 2 control variables?
@hosamalsaeedi83795 жыл бұрын
CrunchEconometrix Thank you very much, I think I should use GDP per capita as a proxy for EG, because the series of EG has some problems with this model. Do you agree with me? Fortunately, I can’t add another variable!
@CrunchEconometrix5 жыл бұрын
Alright, sounds good.
@AliAsghar-vr9fp6 жыл бұрын
hi dear doctor, is it necessary to have dep var at 1st diff in panl ardl.???the dep variabl you have used is stationary at level...is there any ref plz??
@CrunchEconometrix6 жыл бұрын
Some refs are listed at the end of the video. You can also seek other refs from journal articles online.
@remilee86394 жыл бұрын
Hi ,Pro.Thank your videos .I am facing an ARDL error :forval i = 1/39{ ardl lco2 leu lgdp ltr if (id==`i'), maxlag(3 3 3 3) matrix list e(lags) di } however , the result shows that "sample may not include multiple panels".Waiting for your early reply .Thank in advance . Best wishes
@CrunchEconometrix4 жыл бұрын
Hi Remi, your code indicates that you have 39 countries. Am I correct? If yes, how many years?
@traorefirdawsgaladima40632 жыл бұрын
Hi Professor. I am Traore from Togo. I wanted to thank you for the effort provided in these videos. They help me enormously now. But I have difficulties actually. For instance when using forval i = 1/45{ ardl lpibh conc lhc louv ltc lide if(id==`i'),maxlag(2 2 1 1 0 0) matrix list e(lags) di } the estimations stop after some results and this error message is displayed "no observation" I have this kind of message "expression (-_b[conc]/_b[L.lpibh]) evaluates to missing" while using XTPMG,(...), REPLACE MG And this kind of message "Initial values not feasible" While using XTPMG,(...), REPLACE PMG. Please I need help. I don't know how to deal with it. Thank you
@CrunchEconometrix2 жыл бұрын
Hi Traore, I can see that you have 45 cross-sections. Panel ARDL works best when the cross -sections are considerably less than the time dimension. I suggest you reduce the cross-sections and re-estimate the model. Thanks
@talatujalloh87205 жыл бұрын
Hello prof., Thanks so much for your educative and helpful videos. I am working on a dataset with the time series dimension and cross-sectional dimension being the same, 15. I was advised to adopt a panel ARDL estimation technique due to the dynamism in my model. firstly, I would like to know your take on that recommendation, please. Secondly, I have been following from your panel ARDL video, however, when I tried the command for the optimal lag selection, I was told by stata that the command ardl is unrecognized. Also, I tried estimating the MG and also I was told "expression (-_b[cpi]/_b[L.fdilog]) evaluates to missing". I seem not to figure out where am going wrong or what is the problem. Any help from you would be gratefully appreciated. Thanks. below is the output for the various command I issued; Optimal lag selection . do "C:\Users\HP\AppData\Local\Temp\STD1328_000000.tmp" . forval i=1/15 { 2. ardl fdilog, cpi, gdp, inf, nr if (c_id==i), maxlag(2 2 2 2 2) 3. matrix list e(lags) 4. di 5. } command ardl is unrecognized r(199); end of do-file estimating the Mean Group . xtpmg d.fdilog d.cpi d.gdp d.inf d.nr d.top, lr(l.fdilog cpi gdp inf nr top) ec(ECT) replace mg expression (-_b[cpi]/_b[L.fdilog]) evaluates to missing
@CrunchEconometrix5 жыл бұрын
Hi Talatu, did you watch the prerequisite video as advised?
@talatujalloh87205 жыл бұрын
Yes, please.
@talatujalloh87205 жыл бұрын
I learned almost everything on Panel from your videos.
@CrunchEconometrix5 жыл бұрын
@@talatujalloh8720 I'm not sure you did because you would have known that for panel ARDL your data structure MUST be N
@CrunchEconometrix5 жыл бұрын
@@talatujalloh8720 Good to hear. But watch them again to understand estimation techniques that go with different panel structures.
@angechrista91483 жыл бұрын
Hello Doctor, I am having an issue with the command of how to select the maximum lags in panel data analysis, my question is that I can't see the lags for each country and I want to know what does that error of invalid syntax means as shown below. e(lags)[1,4] gdpgr mva fdi infl r1 1 0 0 0 invalid syntax???????? Any help is appreciated.
@CrunchEconometrix3 жыл бұрын
Hi Ange, I explained the lags. You may want to watch it again. Also, click on the error code and follow the guide to find out what you need to do.
@staminadaddie5 жыл бұрын
After deriving the optimal lag selection do i include the lagged variable/s in the stata command when performing the haisman test?
@CrunchEconometrix5 жыл бұрын
But I performed the Hausman test in this video using the dofile where I showed the syntax used.
@miralmaryam3 жыл бұрын
What's the name of optimal lag selection test?
@CrunchEconometrix3 жыл бұрын
Hi Miral, you may need to watch the clip again.
@scholars.home9994 жыл бұрын
Hi Friend, Thanks for sharing your wisdom online. Stata is showing me a weird error ("i" invalid name) when I am using the code you have offered for the Optimal Lag Selection. Can you please help me understand where I went wrong? I have double checked all the commands. -Regard
@CrunchEconometrix4 жыл бұрын
Perhaps you didn't create country ids. Thanks for complimenting my efforts, grateful!
@HibaWorld4 жыл бұрын
Hi I am facing the same issue. Did you manage to resolve it?
@staminadaddie5 жыл бұрын
when one types AIC behind the lags in brackets where does the AIC display in the output?
@CrunchEconometrix5 жыл бұрын
Hi Alistair, it implies that the model will be estimated using AIC optimal lags.
@s.nhabinde73454 жыл бұрын
Dear Prof. Ngozy, Thank you again for your precious videos and teach. I have one more difficulty. I'm trying to get the optimal lags according to the step 5 procedure using stata 14. But the output that come out are these: forval i= 1/11 { 2. ardl txgdpcp index inv cph man abe if(c_id== `i'), maxlag(1 1 1 1 1 1) aic matrix list e(lags) 3. di 4. } variable lags not found (error in option exog()) r(111); can you help me, pls? Kind Regards
@CrunchEconometrix4 жыл бұрын
You can purchase my dofile and modify accordingly. Link is cruncheconometrix.com.ng/shop/
@armanddjaha57633 жыл бұрын
Hi , How can i upload the code ?
@CrunchEconometrix3 жыл бұрын
Upload the code? I don't understand.
@rochnaarora74784 жыл бұрын
Great Work Professor!!!!!! Keep that going.. I admire that a lot. I have a query to ask: while u carried out unit root testing and ran your ARDL model you picked up the variables in their available format but when you are running the PMG , MG DFE models you have changed the specification of the variables into logarithmic form. Isn't it inconsistent. Please clarify whether this can be done or not... Waiting to hear from you soon.
@CrunchEconometrix4 жыл бұрын
Hi Rochna, I did unit root test on the log transformation of the variables before using them. Perhaps, I didn't show that. Thanks.
@btessa2dc6 жыл бұрын
Dear Dr. Ngozi, Thanks again for this tutorial. What is the command to generate the p-values of each of the seven statistics of the Pedroni Cointegration test? In your tutorial you clearly explain how to know whether the variables are co-integrated or not. However, I think it will be great if we can also see p-values. I read some papers where the authors give these p-values. I have not been able to figure out the command that they used. Thanks, Tessa
@CrunchEconometrix6 жыл бұрын
Hi Tessa, I don't know how to obtain the P values. That's why I use the statistics. You may have to do some online search...and if you do, please let me know too. Thanks!
@btessa2dc6 жыл бұрын
Dear Dr. Ngozi, I just found that the easy to go is to use Eviews to perform the co-integration. Unlike Stata, Eviews report the p-values of each of the seven statistics. I also found some commands for stata, but they are very complicated. So I didn't even tried them.
@adeolaoyebowale99515 жыл бұрын
@@CrunchEconometrix I have also been wondering how to find the p-values but I found it eventually. The code is "di 1-normal(2.494)". Absolute values of Test stats should be in the brackets. Thus, for rho panel in your example, we put 8.339 in brackets to obtain the p-value. I hope this helps. Best wishes.
@CrunchEconometrix5 жыл бұрын
@@adeolaoyebowale9951 Thanks a lot!
@dhanu3367 Жыл бұрын
Hello Professor, I have a query regarding optimal lag selection. I used the code you gave and i am getting only one result. But i have 20 countries in my data. Should i run the code 20 times by changing the 'i' with the country name each time? Or running the code just once should give us the results for all countries? Please help😭😭
@CrunchEconometrix Жыл бұрын
Divya, you have too many countries. Panel ARDL works efficiently when you have N
@aiboudaziz83184 жыл бұрын
first of all, thank you for this clarification on the ARDL model. I would like to ask you a question. when implementing the code, stata show me a message (c_id) not found. can you explain to me how to apply this code (c_id == `i ') please.
@CrunchEconometrix4 жыл бұрын
Hi Alboud, c_id is the country id I created. You need to create yours. Thanks.
@aiboudaziz83184 жыл бұрын
Thank you very much professor
@nonsoiheoma17643 жыл бұрын
Please, can I be assisted to resolve this MG code? "xtpmg d.HEPC d.ecou d.POPG, lr(l.HEPC l.ecou l.POPG) replace mg ec(ec)". I have severally to run it but it's not working.
@CrunchEconometrix3 жыл бұрын
Nonso, what errors are you getting?
@nonsoiheoma17643 жыл бұрын
@@CrunchEconometrix STATA displays an error message that says. " ec is in the list of predictors"
@CrunchEconometrix3 жыл бұрын
Check your code with mine as shown in the video. You got it wrong.
@nonsoiheoma17643 жыл бұрын
I just run this code: "xtpmg d.HEPC d.ecou d.POPG, lr(l.HEPC ecou POPG) ec(ECT) replace mg" the error message says "invalid new variable name; variable name ECT is in the list of predictors"
@nonsoiheoma17643 жыл бұрын
I am using STATA 16
@manuellatonga37622 жыл бұрын
Please Prof in this video, can we put level zero when we do ADF?, you said no, but we have stationnary in level, if we begin by one, we dont do at level?, because one is in first difference. Thank you
@CrunchEconometrix2 жыл бұрын
Manuella, you are mixing up these terminologies. My advice: read up on STATIONARY TESTS then come back to understand the estimations.
@busaritajudeen91684 жыл бұрын
Goodmorning Ma, I tried to follow your steps by using "(sum Y x1 x2 x3 x4 x5 x6, if ccy=="HIC") but what I got as response is ccy is not found. What should I do? I even try it stats 13, 14, 15 and 16 still the same. Thanks
@CrunchEconometrix4 жыл бұрын
Hi Busari, I have responded to your query via Facebook.
@sabreenkhan34982 жыл бұрын
can u please provide the code for lag length in comment sec
@CrunchEconometrix2 жыл бұрын
Sabreem, due to unethical conduct and attempts to hack my Google drive all Stata dofiles used in my videos are no longer free but available on my website upon payment. Here's the link cruncheconometrix.com
@dennisbaidoo59953 жыл бұрын
Hello Prof. Thanks so much for your educative videos. I am having difficulty running the code for the optimal lag length selection. My N=6, T=9 and l have 6 variables including the dependent variable. I used : forval I= 1/6 { ardl ROCE DCR LQR DAR SOF TER if (c_id==`i '), maxlag(1 1 1 1 1 1) matrix list e(lags) di } After imputing these commands, l get invalid syntax as the response from Stata. Please, have l left out something. Kindly assist. Thank you.
@CrunchEconometrix3 жыл бұрын
Hi Dennis, watch the video on "Basics of Panel ARDL". To estimate panel ARDL T = OR > 30. Click the Stata error code to know the problem and how to correct same. Thanks.
@dennisbaidoo59953 жыл бұрын
@@CrunchEconometrix Thank you very much
@emilienneyameogo35254 жыл бұрын
Hello madam, Thank you for your precious and great videos that help us a lot. I have a dumb question, please but I need to understand something. Does applying Panel ARDL means that you have to choose between pmg, mg or dfe? Do the results (either pmg, mg, of dfe) represents the results of Panel ARDL? I am confused. Also, for the Lag selection, do I have to define "i" before applying the code because it is not working for me. Thank you in advance.
@CrunchEconometrix4 жыл бұрын
Hi Emillenne, PMG, MG, and DFE have different but overlapping assumptions. Read some of the papers indicated at the end of the video...and yes, "i" must be defined for the syntax to work.
@emilienneyameogo35254 жыл бұрын
@@CrunchEconometrix Okay prof I see now. Thank you.
@duamalik93113 жыл бұрын
Hi great video ,help me a lot but I have a question how I define i ? Please explain it.i really need it to know .
@ishikakataruka25204 жыл бұрын
Thank you for such great videos.Really Helpful. i have one doubt. I have 10 countries in my analysis . I am running this code : forval i=1/10{ ardl exc lr dd fe ggg if (N=='i') , maxlag(1 1 1 1 1) matrix list e(lags) di } but its showing -- 'i' invalid name. how to solve this?
@CrunchEconometrix4 жыл бұрын
Hi Ishika, generate country ids.
@meezdin864 жыл бұрын
Dear Dr. Ngozy, first of all, thank you sincerely for this extended efforts of uploading such intuitive and easy to follow tutorials. I have a question that is not entirely related to this video (related to step 6 which is cointegration). Suppose that I have a panel data (unbalanced) and I am using a fixed-effects model, I have one dependent variable and 7 regressors, 3 of these regressors are found to be Non-stationary at level but stationary at the first difference I(1), so my question is: do I have first to run a cointegration test (say by the stata command xtcointtest or xtdolshm) for these non-stationary variables? and if there is cointegration, how shall I proceed from there? shall I presume with my regression using the stationary variables I(1) (which is obtained by the first difference or by the use of log) along with the other I(0) variables in my regression? Or what exactly to do? I thank you sincerely for your patience and hope that my question is clear, because after the cointegration test, I am lost, I don't know how to proceed with my main analysis (the regression!!)
@CrunchEconometrix4 жыл бұрын
Thanks Mazen, this your query is too long. Shorten it for a prompt response.
@ange-jolinardaldrichtbetsa44076 жыл бұрын
Hello Professor. First of all, thank you for your videos on Panel's ARDL. Regarding the selection of optimal lags, when I execute the command, I receive this message: "invalid numlist has elements outside the allowed range." I have six regressors for the GDP growth rate. I have excluded the other regressors from the model (after the correlation test), but their statistics are still present in the database. Do I have to delete these variables and their statistics from the database before executing the command works? My panel ID is " crossid" and my syntaxe : forval i = 1/7{ ardl tcpibrh rdes2 rdes rsbbp rsdesx tinv iten if (crossid==`i'), maxlag(2 2 2 2) matrix list e(lags) di }
@CrunchEconometrix6 жыл бұрын
Thanks Ange for watching my videos and the positive feedback. You listed 7 variables, so maxlag(2 2 2 2 2 2 2) should be indicated. Caution: too many regressors. Reduce to 3 or 4 to avoid multicollinearity and the model from breaking down.
@ange-jolinardaldrichtbetsa44076 жыл бұрын
@@CrunchEconometrix Thank you! Thank You Doctor
@ange-jolinardaldrichtbetsa44076 жыл бұрын
I analyze the non-linearity between debt and growth (Laffer curve - debt-growth), and crowding out (debt service). I have 3 main regressors ([debt / GDP] ², debt / GDP, debt service / GDP) and three control variables (GFCF / GDP, budget balance / GDP, terms of trade). I will keep the investment (GFCF / GDP). Thanks again Professor.
@harshalidamle71615 жыл бұрын
@@CrunchEconometrix Dear Professor, If we do have more than 3-4 variables, what can be a possible means to calculate Step5. Do we break them in groups and then run the command separately? Can we combine them later when running the final model?
@CrunchEconometrix5 жыл бұрын
@@harshalidamle7161 Not advisable to break them into clusters because that will not give an objective outcome. The disadvantage of having too many regressors is that the model suffers from multicollinearity and performs several iterations with no outcome in most cases. So, use a total of 3 to 4 variables at the most.
@akritidalmia96114 жыл бұрын
How do we include control variables in the model?
@CrunchEconometrix4 жыл бұрын
Same way you include regressors.
@michaelasiedu89284 жыл бұрын
How do you overcome the problem of "maximum number of iterations exceeded" in STATA
@CrunchEconometrix4 жыл бұрын
Hi Michael, I'm not sure how to adjust Stata for more iterations, so you may need to post this on Statalist.org for more constructive feedback. Thanks.
@xuchuanmei35906 жыл бұрын
Dear Dr. Crunch, thank you for sharing your video, I’m a little bit confused about step 7, I got a lot of interation when I ran pmg, could you plz help explain a little what happen is? Thank you very much
@CrunchEconometrix6 жыл бұрын
Hi Xu, PMG is a user-written syntax and iterations can occur from several factors: collinearity among the lags used, collinearity among the variables, functional form of the model etc. So, for a start use lag 1,0,0,0, try log-level formation and re-run the model.
@xuchuanmei35906 жыл бұрын
@@CrunchEconometrix Hi, Dr. Crunch, do you think there is any influence, i have one variable uses the same data between these countries? Thank you so much
@CrunchEconometrix6 жыл бұрын
@@xuchuanmei3590 I have no idea what what you mean by "same data". But why not drop that variable and re-run the model?
@ange-jolinardaldrichtbetsa44076 жыл бұрын
Hello Professor, What are the different types of heterogeneous static panel data modeling? Thank you in advance Professor.
@CrunchEconometrix5 жыл бұрын
Hi Angie, don't know of any except for dynamic models. Static models are for short panels.
@kaisernff78085 жыл бұрын
Thank you, Prof, for these videos. They are very helpful. My concern is how you address Cross-Sectional Dependence (in an ARDL setting) which could not be assumed away especially when dealing with countries like those in West Africa
@CrunchEconometrix5 жыл бұрын
Hi Kaisernff, thanks for the positive feedback, Deeply appreciated! With the algorithm deployed during estimation (use of lags and difference operator) takes care of cross-sectional dependence. Please may I know from where (location) you are reaching me?
@kaisernff78085 жыл бұрын
@@CrunchEconometrix Dear Prof. Thank you very much for the response. I am based in Abuja and work with the ECOWAS Commission. Don't you think that we should test for CD instead of assuming that the algorithm deployed will deal with it? When there is strong evidence in favor of CD, What do you think about using CS-ARDL proposed by Ditzen (2018)?
@CrunchEconometrix5 жыл бұрын
Oh, I see that is one of the improvements on the traditional panel ARDL methods. Well, if you feel there's need for it given the scope of your panel why not? Thanks for watching my videos. I'll appreciate if you can share the link to my KZbin Channel for more awareness. Kind regards.
@kaisernff78085 жыл бұрын
@@CrunchEconometrix I have shared the link with colleagues here at the ECOWAS Commission. You are doing a fantastic job. Keep it up.
@CrunchEconometrix5 жыл бұрын
I am grateful, Kaisernfff!!! I am working on a paper relating to ECOWAS. I'll send to you once it's done for your inputs as a coauthor. Once again, thanks for the publicity. May God bless you, Amen!
@maisau11324 жыл бұрын
Dear Dr I 'd like to have your guide for 2 questions as follow: @1.Could you show me how did you decide choosing COMMON LAGS is (1 0 0 0)? How can I get optimal lags from 10 lags set corresponding to 10 countries? @2. Stata had been running for too long time (number of Iterations are more than 250) when I ran pmg model and It seemed not to stop so I have to closed stata app. What was that issue? Thank you very much. Sau Mai
@CrunchEconometrix4 жыл бұрын
Hi Mai, I explained how I got the lags. Kindly watch the applicable video. When Stata iterates for too long indicates the model is not well-structured mostly due to using wrong lags.
@vandanaarya4313 жыл бұрын
@CrunchEconometrix Dear mam, my name is Vandana, research scholar at GJU, Hisar, Haryana, India. please provide me the codes provided by ANet Tchetchik to calculate optimal lag length. I shall be thankful to you for this. Further, I am following your panel ardl procedure. However, I am having trouble at step 5 when I am trying to use the long code for choosing the most common lags. Stata gives me the error that invalid name 'i'. My data is already in the long format and I have used xtset to tell Stata about the panel data presence. Could you kindly help me with this. Thank you.
@gphilipsen952 жыл бұрын
I had the same issue with 'i'. It is important to use `i' so first ` and then ' instead of double ' '. The issue is with the different kind of character.
@THIAGOVIZINE4 жыл бұрын
Dear professor Ngozi! Thank you so much for your videos! They are helping me a lot with my thesis! However, I’ve some doubts, could you please help me? 1º: When I run step 5, I get the following message: “Collinear variables detected r(9)”. I saw your answer to Anh Nguyen (+ or - 1 year ago), and tried to reestimate the structure, but it didn’t work. 2º: When trying to run step 7, a message of “insufficient observations” shows up, however, my database has 19 countries, 27 years, and 532 observations. Can you please help me? Thank you very much!
@CrunchEconometrix4 жыл бұрын
Hi Thiago, did you use optimal lags to estimate the model as shown in the video series?
@THIAGOVIZINE4 жыл бұрын
@@CrunchEconometrix Thanks a lot for your support! And sorry for taking so long to answer. I ended up changing my model. I ran the data with first difference.Fortunately everything ran just fine. Once again thank you so much! All the best
@CrunchEconometrix4 жыл бұрын
Glad to hear, Thiago!❤️
@ruruk51384 жыл бұрын
dear prof, i am confused about the lags we must put them in the short run or long run or in both? i read that they are usually put in the short run part?
@CrunchEconometrix4 жыл бұрын
Try it and see the outcomes.
@AliAsghar-vr9fp6 жыл бұрын
xtwest nd xtped command also not recognized is there any command to install these in stata 13...thanks
@CrunchEconometrix6 жыл бұрын
Use the Stata Help menu for guidance.
@charlottewhite92724 жыл бұрын
Hi, I'm wondering why the variables are suddenly differenced and transformed into log form in step 7, please could you clarify this for me?
@CrunchEconometrix4 жыл бұрын
Hi Char, I transform to logs to simplify interpretation and the difference is used in line with the technique. See references at the end of the video. Thanks.
@charlottewhite92724 жыл бұрын
CrunchEconometrix thanks for your reply! Your videos are so helpful and you explain everything so clearly
@soufianemahjoubi57584 жыл бұрын
hello, why if I can use the command of optimum lags, stata 14 shows this message: "command ardl is unrecognized" please
@CrunchEconometrix4 жыл бұрын
Hi Mahjoubi, type either of the following in the Command window to install the syntax: ssc install ardl OR findit ardl OR help ardl.
@jackmurphy24035 жыл бұрын
Hi thanks again for the great video. I am trying to test for optimal lag using the code you have used but I get the error message that ardl is an unrecognised command. Do you know why? Thanks!
@CrunchEconometrix5 жыл бұрын
It means you are yet to install the syntax. Try either of these: ssc install ardl or help ardl.
@jackmurphy24035 жыл бұрын
@@CrunchEconometrix Okay great thank you! I have done that and now try to run the code, I don't get a red error message but it also doesn't give me any findings?
@CrunchEconometrix5 жыл бұрын
@@jackmurphy2403 Perhaps it's got to do with your data structure.
@jackmurphy24035 жыл бұрын
@@CrunchEconometrix I seem to have fixed this but now get the error message factor variables and time-series operators not allowed!
@CrunchEconometrix5 жыл бұрын
Is l.x or d.x among the listed variables? These are time series operators.
@nssofod4 жыл бұрын
Madam, thanks for this video. Can I have reference of some articles which have followed this method? And why I am having different ardl structure for stata and eviews? Plz help. Thanks in advance.
@CrunchEconometrix4 жыл бұрын
Hi Debasis, references are listed at the end of the video. The softwares differ. Don't expect the same output.
@shintaamalina3 жыл бұрын
Hello Prof. Ngozi, this video is very helpful. Highly appreciate it. However, I found error when testing the ARDL I follow the same instruction of forval: forval i = 1/14 { ardl y x1 x2 x3 x4 if (countries==`i'), maxlag (2 2 2 2) matrix list e(lags) di }, just changed 1/14 because I have 14 countries. The error message is: invalid numlist has elements outside of allowed range. Could you please suggest me which mistake I did?
@CrunchEconometrix3 жыл бұрын
Shinta, you have 5 variables so it should be maxlag(2 2 2 2 2).
@shintaamalina3 жыл бұрын
@@CrunchEconometrix Many thanks prof Ngozi!! It works now!! God bless you!!
@shintaamalina3 жыл бұрын
@@CrunchEconometrix Hi Prof. Ngozi, I faced another issue when running xtpmg. It says: invalid new variable name; variable name ECT is in the list of predictors while I don't have ECT in my predictors. Could you please guide me? Many thanks in advanced!
@same1745 жыл бұрын
Hi again Ngozi, If you remember I got a negative Chi2 for a Hausman test. Today I figured out if I reverse the command (hausman pmg mg, sigmamore) the Chi2 will be positive. However, I wonder if the null will be reversed as well or not? I mean the null should be: MG performes better than PMG. Thanks for your kind help.
@CrunchEconometrix5 жыл бұрын
Not at all. The null hypothesis remains the same: PMG performs better than MG.
@same1745 жыл бұрын
CrunchEconometrix Thanks for your response Dr! You are really helpful and patient with us.
@haddaderadra23104 жыл бұрын
hello again, when i apply the code of optimal lag, i have a problem i get an error message " ardl unrecognized command" why ? and what to do in this case please ?
@CrunchEconometrix4 жыл бұрын
Install the syntax with any of these: ssc install ardl OR findit ardl OR help ardl.
@vanessacandido64194 жыл бұрын
Hi Prof, I am currently working on ARDL in stata and your videos are helping me a lot. I am trying to determine the causality between electricity consumption and economic growth. I have transformed my data into natural logarithms and optimal lag for EC and GVA are 1 and 0, respectively. Both are stationary at first difference. I've tried running the code as shown in your video but encountered a problem in stata: xtpmg d.logEC d.logGVA , lr(l.logEC logGVA) ec(ECT) replace mg xtpmg d.logEC d.logGVA, lr(l.logEC logGVA) ec(ECT) replace pmg hausman mg pmg, sigmamore Stata error says: invalid new variable name; variable name ect is in the list of predictors How can I reconcile it? Hope you can help me with this. Thank you very much
@CrunchEconometrix4 жыл бұрын
Hi Vanessa, please follow my guide to performing the Hausman test as shown in the video. Thanks.
@istabraqal-riyami49393 жыл бұрын
Hi Vanessa, I'm having the same problem. How did you fix it?
@haddaderadra23104 жыл бұрын
hello another time, i used the code to determine the optimal number of lags but it didn't work, it does not indicate any fault but does not give results, what to do to resolve this problem please and thank you
@CrunchEconometrix4 жыл бұрын
Hadda, if that is the case there has to be an error code from Stata.
@same1745 жыл бұрын
Hi again Ngozi, I looked at Pesaran work one more time. Radical N/T for their empirical work is 0.18 considering data from 1962-1992 and 30 countries. Mine is 0.03 ! I looked at other papers and the ratio which should tends to infinity is much larger! It seems there is no criteria for "large enough " concept! Do you think empirically we can refer to those papers as a justification for sample size?
@CrunchEconometrix5 жыл бұрын
Very correct Esmaeil. But to avoid small sample bias, it is ideal to have at least 30 observations.
@same1745 жыл бұрын
CrunchEconometrix thanks a lot for your swift reply and your precious kindness :)
@CrunchEconometrix5 жыл бұрын
@UC-P0aCjKjB6dpgPAlIcNxiw 1 year = 4 qtrs. So, 72 qtrs is fine.
@same1745 жыл бұрын
CrunchEconometrix thanks again. Have a lovely day there.