I keep replying to this...it's shown in the video and linked in the description. The same data as the authors of the plot!
@user-yz9bu6rx7b3 ай бұрын
So are you saying you are using variables and calculations to determine GDP growth?
@econ_eric3 ай бұрын
Yep, the GDP growth variable's historical values and calculations to forecast it's future values.
@user-yz9bu6rx7b3 ай бұрын
So you made your video 6 years after the IMF projections and your model matches theirs and youre askin why their model is off in prediction. Doesnt that mean your model is wrong to if it follows the IMF projections?
@econ_eric3 ай бұрын
No, I used the same data as the IMF and my model more closely matches the actual growth. My model is also very simple and illustrates the concept of reversion to the mean.
@user-yz9bu6rx7b3 ай бұрын
@@econ_eric what IMF data is that specifically?
@econ_eric3 ай бұрын
@@user-yz9bu6rx7b Check out 9:39.
@econ_eric3 ай бұрын
@@user-yz9bu6rx7b Please watch the video. I visit the actual website for data. I've also linked my data in the description.
@KarlaRamirez-g5w5 ай бұрын
Thank you so much, Eric! I will put you on my acknowledgments & references for my poster presentation! Once again thank you!
@econ_eric5 ай бұрын
You're welcome! Thank you!
@pedrov.piffaut65856 ай бұрын
Excellent video, thank you!
@econ_eric5 ай бұрын
You're welcome!
@erkimula20027 ай бұрын
Thank you, Eric.
@econ_eric7 ай бұрын
You're welcome!
@desperatewanderer74210 ай бұрын
This is awesome - thank you so much
@econ_eric10 ай бұрын
You're welcome!
@arisraz10 ай бұрын
Thanks for this! Really helped my research!
@econ_eric10 ай бұрын
You're welcome!
@zeliesieyadjeu8096 Жыл бұрын
Thank you so much it helped a lot. Can you please tell me how to add a North arrow and the scale?
@econ_eric Жыл бұрын
That's a great question! I assume you mean a distance scale..I'm actually not familiar with adding these elements, but you may find some help at the Stata forums or simply through internet searches. Thanks!
@rodrigocandela2533 Жыл бұрын
Thank you so much! I was struggling with the state borders but finally made it thanks to you!
@econ_eric Жыл бұрын
Excellent news! I'm glad you got it. I find youtube to be a great resource for programming, so easy to see examples worked out.
@emilywyatt9785 Жыл бұрын
Hi! Very helpful, thank you. Do you know what options must I specify to color the map as a heatmap? Thank you
@econ_eric Жыл бұрын
Hey Emily, check out this website for the different color palettes: repec.sowi.unibe.ch/stata/palettes/colors.html. The author gives you the code and examples. You can do a search for "heat" or just pick out the scheme that you think looks best. Thanks!
@jeetengiri5980 Жыл бұрын
Hello Eric. I just realized while watching the video that I have known you since my graduate school days. :) Hope you are doing good.
@econ_eric Жыл бұрын
Haha, I knew that might happen when I posted this. I hope you are well!
@duhamellogozo6381 Жыл бұрын
Thank you very much. I have one concern, how do I put the labels on the regions or cities? I am viewing data on the map of Benin, and I need to put the names of the departments and communes on the map.
@econ_eric Жыл бұрын
Hello Duhamel, you're welcome. I'm not certain that the spmap command has this functionality, but if you send me the files and code, then I can take a look at it. Alternatively, you can search online for more documentation and there is a forum where you can post the question for others: statalist.org. Thanks!
@duhamellogozo6381 Жыл бұрын
@@econ_eric Hello, thank you for your answer. I got the solution to my problem and I was able to put the names of the departments on the map.
@duhamellogozo6381 Жыл бұрын
Another concern of mine is to be able to visualise more than one variable at a time on the map with legends of each variable.
@menakarajapaksha7963 Жыл бұрын
Thank you very much ❤❤❤
@econ_eric Жыл бұрын
You're welcome!
@woblogs2941 Жыл бұрын
Thank you so much Eric, your video really helped me
@econ_eric Жыл бұрын
You're welcome!
@IthielEgambaram Жыл бұрын
What an insightful video, thanks Eric!
@yuqingwu1011 Жыл бұрын
Hi Eric, another question , If the variable is not stationary, but after first difference the dfuller shows it is stationary, and then the best lag is lag 2, what should the reg command be? (The original variable is x, after first difference it is x1, and dfuller shows the optimal lag for x1 is lag2) , really confusing about this…
@econ_eric Жыл бұрын
If you dfuller shows stationarity (reject Ho), then however you set up the dfuller test should be your base model. Then you adjust things. Check out p.2 of the tsdfuller pdf. If you're trying to determine which model is the best model to forecast with, then I would generate a new dependent variable series, delete some of the most recent observations, and forecast with each model. Some models may forecast a recovery from recession better and others will forecast the growth before a downturn better. Which is more important to you? There are also the indicators of model fit to consider. Also, I'm not sure if you mean the optimal lag # or the optimal lag. Check out the tsdfuller pdf for details on the output of dfuller and what you're actually testing.
@econ_eric Жыл бұрын
Also, you can test whether a model is stationary by predicting residuals (postestimation in Stata). Predict the residuals and then use dfuller to determine if the residuals are stationary. Do this for each variation of your model. Also, If you find that the first difference of your variable is stationary, then try including a one-period lag of the variable on the right side of the equation (as an independent variable). Predict the residuals and determine if they are stationary. This can be a viable alternative to using your first difference model from dfuller as your main model.
@yuqingwu10112 жыл бұрын
hi Eric, thanks for your video, it helps! Only one question, is the squared deviation referring to variance?
@econ_eric2 жыл бұрын
You're welcome, Yuqing! Do I refer to squared deviation in the video or the program code? I'm not quite sure what you're referring to.
@yuqingwu1011 Жыл бұрын
@@econ_eric hi Eric, you mentioned squared deviation from mean in the video and say there is much deviation from mean corresponding to the crisis, I am not sure if the squared deviation here referring to the variance
@econ_eric Жыл бұрын
@@yuqingwu1011 I'm not sure where I said squared deviation in the video, but the GDP growth associated with a crisis will be a large deviation from the mean of the GDP growth series.
@patriciamawuledeyagyapong27392 жыл бұрын
Thank you. This was extremely helpful
@econ_eric2 жыл бұрын
Of course, you're welcome, Patricia!
@mahatmaalimibrahim66312 жыл бұрын
Excellent and amazing. Thank you Eric.
@econ_eric2 жыл бұрын
Of course! You're welcome!
@georgegt49152 жыл бұрын
This is amazing job. Thanks a million Eric
@econ_eric2 жыл бұрын
Glad you liked it!
@indi23632 жыл бұрын
Hi Eric, thanks so much for this video, quite informative and well explained. Greetings from chile
@econ_eric2 жыл бұрын
Glad it was helpful!
@thinhvohuynhhung24012 жыл бұрын
Hi Eric, it was so amazing. Thanks so much for the video. I just wonder which method you were using to process this forecast. Was that ARIMA?
@econ_eric2 жыл бұрын
Yes! It was a simple autoregressive model without any error terms. Thanks!
@phidelischerotich75032 жыл бұрын
Have tried making forecasts but am getting an error that year 2022 evaluates to missing, any help please?
@econ_eric2 жыл бұрын
You may not have saved coefficient estimates from the regression model.
@zainabrauf1543 Жыл бұрын
Same issue here. I saved the coefficient estimate from regression model. But the error still states "Missing values were encountered while attempting to solve the model at time 2023. Variable NUTHIV evaluates to missing." What might I be doing wrong? Thank you beforehand!
@Beygent2 жыл бұрын
I really enjoyed the video! Can you do something on how to calculate beta convergence? Thanks.
@econ_eric2 жыл бұрын
Interesting! I'm not too familiar with these empirical models, but I'll consider it for a future video!
@Beygent2 жыл бұрын
@@econ_eric that would be awesome, although I hope to beat you to it 😅😅. I couldn’t find any youtube videos, so I’ve decided to take the plunge myself
@econ_eric2 жыл бұрын
@@Beygent Good for you! Maybe we can collaborate for a video. Let me know how it turns out! :)
@passenger86832 жыл бұрын
Thank you so much Eric for your essential presentation about how to forecast GDP. In the meantime, I kindly ask that could you share your do-file if it is possible?
@econ_eric2 жыл бұрын
Yes, it is in the description of the video. Thanks!
@fatematuzzahra9442 жыл бұрын
Hi Eric, many thanks, really beneficial, much appreciated.
@econ_eric2 жыл бұрын
Very welcome!
@hoangduongvu2 жыл бұрын
Hi Eric, thank you for your video. I go through your do file and it looks like "forecast solve" only works when the model is "reg realgdpgrowth l.realgdpgrowth". If we want to add more independent variables there (for example reg realgdpgrowth l.realgdpgrowth worldgdpgrowth), then how can we have the out of sample forecast? I tried your do-file but it does not work. Can you please help me ?
@econ_eric2 жыл бұрын
Hello Duong, thank you for your comment. I think your solution is to store the estimates from the new model with worldgdpgrowth and then use the forecast command. For instance, include worldgdpgrowth in the model on line 79, store the estimates, and then create a new forecast model on line 96 (call it something different than ericmodel). Please let me know if that works.
@dougiews30302 жыл бұрын
Hi Eric, thanks very much for the video. Unfortunately when I follow all of your steps I am met with the following error: Variable id specified in option id() does not uniquely identify the observations Any suggestions on what I may be doing wrong would be a great help. Thanks
@econ_eric2 жыл бұрын
Hi dougie ws, did you perhaps make a change to the data? This program should work since I uploaded it to the Google drive. I would try to download and run again. Let me know if that works.
@alirezaei34263 жыл бұрын
I really appreciate you for sharing this tutorial video. It is great
@econ_eric3 жыл бұрын
You are very welcome, Ali.
@davidnewton92863 жыл бұрын
Amazing video and shared content. Thank you so much.
@econ_eric3 жыл бұрын
Glad it was helpful!
@zaeemalehsaan5593 жыл бұрын
Very well explained Professor! Thank you for this
@econ_eric3 жыл бұрын
Thank you, Zaeem, you are welcome!
@15khari3 жыл бұрын
Thank you!
@econ_eric3 жыл бұрын
You're welcome!
@MrAnimefan12345613 жыл бұрын
Hi Eric amazing work here..! I like to ask regarding the lag aspect. As i run through your code, i realized that the Q-value is not less than 0.05, and also the regression output for p-value as well. Just like to ask if it would be still meaningful to regress gdp growth to l.gdp growth? As im guessing the whole idea pins upon the lagged aspect. Thanks!
@econ_eric3 жыл бұрын
Yes! It is still meaningful to regress gdp growth on l.gdp growth if it produces accurate forecasts. I would argue that the relationship is not spurious - a good year of growth is likely to spur another good year. Consider the alternatives and determine which model produces more accurate forecasts. I was thinking about making another video about lag specification or checking the accuracy of forecasts. There are several ways to check the accuracy of your forecasts - one easy way is to compare the actual data to the forecast. The Stata manual for the forecast command explains this well beginning on page 6: www.stata.com/manuals13/tsforecast.pdf If the coefficient on the lag of GDP growth is not significantly different from zero with 0.05 level of significance, we can try another model with only the regression constant or perhaps another variable or two. Then, plot and compare the forecasts between models, compare r-squared values, etc. In any case, if a model accurately forecasts, then it is hard to argue that it is not meaningful because a p-value for a coefficient is 0.054 rather than <0.05. It is true that the relationship may be spurious; however, the theoretical justification is not a stretch. Also, this model is probably sensitive to the selection of the sample. For instance, if we drop a recent outlier in GDP growth, the q-value and p-value may change.
@MrAnimefan12345613 жыл бұрын
@@econ_eric thanks for the comprehensive comment! A lot to digest and yes a video regarding lag specification and forecasting accuracy sound like good content! Thanks for the reply :)
@chrishou7413 жыл бұрын
Eric, you are amazing. Hope you can do more videos about Stata
@econ_eric3 жыл бұрын
Thank you, Chris, I have some more to come.
@jerryfang49043 жыл бұрын
Thank you! Very helpful.
@econ_eric3 жыл бұрын
You're welcome!
@samiasamssoume47523 жыл бұрын
Please, how to get the graph of "twoway (line realgdpgrowth year) (line f_realgdpgrowth year, lpattern(dash))" but in the case of panel?
@econ_eric3 жыл бұрын
Samia, what is your panel variable? If it identifies countries, then do you want real GDP growth plotted for each country in your data set? The variable f_realgdpgrowth includes a forecast of GDP growth, also. Therefore, many options are possible for an estimation and plot.
@samiasamssoume47523 жыл бұрын
Thanks for the usiful video. Please could you give me the code for the graph that figures in the second 0.04, but with panel data
@econ_eric3 жыл бұрын
Hello Samia, you're welcome. However, I don't understand what you're asking with "the second 0.04". There is no panel data here.
@samiasamssoume47523 жыл бұрын
@@econ_eric Yes I know there is no panel data in your video. I ask if you have the command to do this graph that figures in your video at the second 0.04 and also at the time 8.48 minute (forcasting graph) but with panel data case. I need to get this graph for my paper using panel data approach.
@samiasamssoume47523 жыл бұрын
@@econ_eric I must to do a panel GMM forcasting study that's why.
@giovanniramos53403 жыл бұрын
Great contribution to the university community that we make use of this type of analysis, greetings from Ecuador
@econ_eric3 жыл бұрын
Thank you, Giovanni!
@businessleadershipandmanag5223 жыл бұрын
Thank you very much for this great brief lecture. Please kind share your codes with me. Secondly, how do i go about Covariate Augmented Dickey Full test?
@econ_eric3 жыл бұрын
Hello! The link to my program code and data is in the description - thank you!
@businessleadershipandmanag5223 жыл бұрын
@@econ_eric Hi Eric, thank you very much. Any idea about Covariate Augmented Dickey Full test? Thanks.
@econ_eric3 жыл бұрын
@@businessleadershipandmanag522 I've done a quick search and found a good post in the Stata forums by Andrew Musau: www.statalist.org/forums/forum/general-stata-discussion/general/1361250-determining-optional-lag-length-using-varsoc-for-panel-data According to Andrew in 2016, the topic isn't addressed well in the Stata forums. However, there have been some updates to Stata since 2016 and maybe they address it in Stata 17. You could also try contacting some of the Stata staff.
@MAX-ho6wg Жыл бұрын
@@econ_eric Thanks Eric.
@MAX-ho6wg Жыл бұрын
@@econ_eric Im using Stata 15.
@hermanusbernardusswart46903 жыл бұрын
Very well done! Thank you so much!!! :)
@econ_eric3 жыл бұрын
Thank you, Hermanus!
@lordoffraternity3 жыл бұрын
Great, informative, professional work. Well done 👍🏻
@econ_eric3 жыл бұрын
Thank you, Lord of Fraternity!
@jonahanb3 жыл бұрын
Eric, thank you so much for making this video & providing so many additional links! I felt super lost regarding a class project of forecasting for which I have 6 days to complete without any prior knowledge of how to write forecasting code, but you give me hope! :)
@econ_eric3 жыл бұрын
You're welcome, Johanna! I'm glad you've found it useful!
@otavioconceicao47803 жыл бұрын
Very nice, Eric! Thank you for sharing this public good with us!