Hi Professor Kling, thanks so much for your videos. How does the model you show account for the panel nature of the data? Or does it? Can we include an interaction term using xtreg to account for the panel nature of the data (instead of regress as you have demonstrated, which would be an SOLS/POLS model as you've explained in your video Introduction to Panel Data)?
@YUNIKARN22 күн бұрын
A fixed effects model allows (only) a shift in the intercept but the slope coefficients are constant (fixed). Interaction effects go further by permitting changes in slope coefficients. They can be combined with fixed effects - but I would not recommend using xtreg, fe (the default) as you might like more control over the dummies used in fixed effects models. I tend to prefer xi: reg y x i.code and add the cross-sectional dummies and maybe additional shifts in slope coefficients.
@reshmaroshania502418 күн бұрын
@@YUNIKARN Thank you so much!
@fidahussainawan3786Ай бұрын
github not available error
@YUNIKARNАй бұрын
Thanks for your comment. The brackets affect the link. I adjusted the description github.com/GerhardKling/PythonForDataScience
@abrakaba3755Ай бұрын
Thank you so muchhh. Much appreciated 🙏
@YUNIKARNАй бұрын
You’re welcome 😊
@Xx_OCASTE_xXАй бұрын
love it
@YUNIKARNАй бұрын
Thanks, much appreciated!
@saifhaffar287Ай бұрын
great video, are there any commands on stata for the KPSS test?
@YUNIKARNАй бұрын
Glad you enjoyed the video. Yes, Stata has the command kpss, which conducts the KPSS test. You might need to install it depending on your version of Stata
@DarktracksАй бұрын
Hi canyou help me test a system i have currently it gives me 100% winrate
@YUNIKARNАй бұрын
That sounds too good to be true. I will respond to your email by tonight. My Python code can be adjusted to test any other betting strategy. The link to the GitHub repository is in the description
@gsps4211Ай бұрын
Hi Prof, could I please have the link to the data set used for this tutorial. I tried looking at Reshare (UK data Service), I couldn't find it there. Your help is extremely valuable to my research. Thanks, Rancho.
@YUNIKARNАй бұрын
I believe that the codes should be on GitHub github.com/GerhardKling/Research
@VyshnavK-iz6pnАй бұрын
sir im from india i want to learn financial modelling course free is available in any website?
@YUNIKARNАй бұрын
Here is a link to my GitHub for this playlist: github.com/GerhardKling/FinancialModelling Of course, this playlist is for free. I will release one video each week. There is an updated and more comprehensive course on Udemy: www.udemy.com/course/company-valuation-a-guide-for-analysts-investors-and-ceos/?referralCode=FC67D2F6397D78F56448 I usually post coupons for discounts on my channel page - but I only get them once a month. I have spent a lot of time in India. I look forward to my next trip in December!
@fatimajunejo2 ай бұрын
Thanks
@YUNIKARN2 ай бұрын
Welcome. Thanks for watching
@JoanJimenez2 ай бұрын
This is great. Ty. I subscribed.
@YUNIKARN2 ай бұрын
Welcome! Enjoy the Joy of Data Analysis
@bahrammavandadi2 ай бұрын
😍
@YUNIKARN2 ай бұрын
😊
@YUNIKARN2 ай бұрын
My new Company Valuation course is out! Limited offer for USD 9.99 (expires in four days): www.udemy.com/course/company-valuation-a-guide-for-analysts-investors-and-ceos/?couponCode=FEA4E8F50C8E011B61F2
@YUNIKARN2 ай бұрын
My new Company Valuation course is out! Limited offer for USD 9.99 (expires in four days): www.udemy.com/course/company-valuation-a-guide-for-analysts-investors-and-ceos/?couponCode=FEA4E8F50C8E011B61F2
@YUNIKARN2 ай бұрын
Limited offer for USD 9.99 (expires in four days): www.udemy.com/course/company-valuation-a-guide-for-analysts-investors-and-ceos/?couponCode=FEA4E8F50C8E011B61F2
@AsrifYusoff2 ай бұрын
Fantastic. Thanks a lot!
@YUNIKARN2 ай бұрын
Glad you liked it!
@leibaleibovich58062 ай бұрын
Does anyone know what happened with Rune (Learn Python with Rune)?? It had a ton of useful content. I wanted to dive into his courses. Now everything is gone. Incredible loss.
@YUNIKARN2 ай бұрын
Yes, I did wonder as well. I check his content - but it seems to be all removed. Let's hope he is fine
@Comrade-wv1lu2 ай бұрын
The directory thing is confusing.
@YUNIKARN2 ай бұрын
What exactly is confusing about it?
@BrinderSadler3 ай бұрын
😂😂 I think lots of people watch to the end ... but still nice to say hello to your mum! 🤣
@YUNIKARN3 ай бұрын
This is the way. Watch to the end!
@BrinderSadler3 ай бұрын
Is it possible to use robust option with FE and RE? Thank you.
@YUNIKARN3 ай бұрын
In panel data, the standard approach is to use the cluster option in Stata, which also accounts for serial correlation.
@BrinderSadler3 ай бұрын
Hi there, just confirming that we can use time dummies but not firm dummies in fixed effects? Thank you.
@YUNIKARN3 ай бұрын
You can use time and firm dummies. However, there is a risk of overfitting. You might get great in-sample model fit - but once you try to predict out-of-sample the quality drops.
@BrinderSadler3 ай бұрын
If your goal is to give us a sense of joy when it comes to data (as you say) - I would say mission accomplished 👏
@YUNIKARN3 ай бұрын
Thanks, much appreciated!
@BrinderSadler3 ай бұрын
Hi there, is the GitHub link still available, please? Can't seem to locate it here. Thank you.
@YUNIKARN3 ай бұрын
It should be here: github.com/GerhardKling/DataScienceStata/tree/main/Lecture4
@BrinderSadler3 ай бұрын
@@YUNIKARN thank you
@augustinzouzou67863 ай бұрын
Hello Dr , i need to be in touch with for guidance in PHD in finance , is it possible if I can reach you and talk about it ? thank you
@YUNIKARN3 ай бұрын
If you are interested in pursuing a PhD at the University of Aberdeen, we can have a chat. Otherwise, I cannot provide any individual consultation due to regulations. All the best!
@augustinzouzou67863 ай бұрын
@@YUNIKARN its ok, let us talk for advice and make decision together , thank you
@augustinzouzou67863 ай бұрын
@@YUNIKARN I am still waiting for your support , let us talk and see if i can pursue it
@YUNIKARN3 ай бұрын
I responded. If you want to study at the University of Aberdeen, I am happy to help. However, I cannot provide individual consultations
@BrinderSadler3 ай бұрын
The steady pace, full explanations with supporting examples, and clear demonstration of implementation are exactly what learners need! Thank you!
@YUNIKARN3 ай бұрын
Glad it was helpful! May the Force be with you!
@facemeproject71143 ай бұрын
Hilarious comment about your mum watching 😅 dry much value your Stata videos. Please keep them coming!
@YUNIKARN3 ай бұрын
Well, the truth hilarious. I am working on a panel data course. You find two Stata courses on Udemy (www.udemy.com/user/gerhard-kling-2/ ). May the Force be with you!
@BrinderSadler3 ай бұрын
By far, the BEST Stata tutorial I have come across for less experienced users. THANK YOU! I really hope you will create such step-by-step videos using examples for further approaches such as system GMM, D-I-D.
@YUNIKARN3 ай бұрын
I am glad the videos are useful. I am working on a panel data course (GMM, difference-in-difference etc.). Put video editing takes a very long time. Enjoy your research project!
@alimtanta29343 ай бұрын
Ph.D. In quantitative finance: My topic to be Machine learning algorithms for risk management in trading activities. The main objective is to develop a prototype framework for pricing and risk management using machine learning algorithms. I have been given 2 years to complete this PhD project from a hedge fund company, and they are the ones financing it. After my graduation, I will be able to continue to work there. The main objective is to be able to do something I stand 100% behind and love doing, not outside of my interest. This PhD project is being funded by a hedge fund company, which has given me two years to complete the project. I'll be able to keep working there once I graduate. I genuinely enjoy doing this, and I spend the majority of my days on this project, even though I haven't started yet. What do you think the response from any university I apply to would be? As professional experience. By the way, I'm from the Netherlands.
@YUNIKARN3 ай бұрын
Two years is short. Most PhD programmes will require three years. So you will need to think about self-funding one year or finding alternative arrangements (write-up periods etc.). I worked at Utrecht University. The Dutch system is quite different from the UK as most PhD students have a teaching position. Do you want to try the Dutch market or UK/US? You need a good fit with a potential supervisor. Good luck!
@alimtanta29343 ай бұрын
@@YUNIKARN It's entirely up to me, by the way; money is not a problem, nor is getting employment. I am prepared to provide for my own needs in order to maintain my research's flexibility. This is the reason I asked you to share your thoughts on the matter. I want to work closely with the university of my choice and be totally independent. That's the reason I'm funding myself. But I believe that two years is reasonable. I wish not to spend more time. I am at Erasmus University and TU Delft
@YUNIKARN3 ай бұрын
@@alimtanta2934 I had PhD students who completed within 2 years (both with industry experience). With a good proposal, you should be able to get admission. I suggest contacting potential supervisors before making an application. Good luck!
@alimtanta29343 ай бұрын
@@YUNIKARNThank you very much for your response. Your channel is very educational. I appreciated
@NilofarAsgari4 ай бұрын
You are crazy
@YUNIKARN4 ай бұрын
Yes, I take it as a compliment
@mauriciobemfica4 ай бұрын
extremely useful!!! thank you so much. Last year I spent hours setting up my data !!!
@YUNIKARN4 ай бұрын
Glad it helped!
@bolisolwak13904 ай бұрын
thank you for nice explanation , my question is do stata has command for bai-perron test for multiple break in time seres.
@YUNIKARN4 ай бұрын
There is an implementation in Stata called xtbreak. My Udemy course on Applied Time Series explores structural breaks in a lot more detail (testing for knowns and unkown breaks)
@bolisolwak13904 ай бұрын
@@YUNIKARN thanks for a good reply , now I have used the test and found two breaks in the data and wanted to use Lagrange multiplier Lee and Strazicich (2003) but could not find the command in stata I searched online could you please help with the command if it available in stata or even are thanks
@YUNIKARN4 ай бұрын
@@bolisolwak1390 Only available in R or RATS as far as I know. Here is a link to the GitHub. So either run it in R/RATS or translate into Stata github.com/hannes101/LeeStrazicichUnitRoot
@bolisolwak13904 ай бұрын
@@YUNIKARN Thanks once again, I am not familiar with that software if I could get code for R it would sound good to me do you have the link for R ?. Thanks.
@YUNIKARN4 ай бұрын
@@bolisolwak1390 I suggest running R through Anaconda (www.anaconda.com/). Free download for R and R Studio. If you have not used R before, it will take a while to get used to
@mustadrone67314 ай бұрын
Amazing outlook. I have been inquisitive over time regarding specifically unemployment. As an 22 year old finance professional, I firsthand observe the incredibly heavy mismatch between potential service sector jobseekers (more so for higher paying multinationals) and the relatively static job growth. The last generation has seen a significant shift towards the service and that's something that isn't stopping any time soon. Are we potentially moving towards a high unemployment universal basic income type economy or is the worldwide job market going to adjust these professionals.
@YUNIKARN4 ай бұрын
Thanks for watching! I am looking into the job market. It is not easy to get reliable data. On Monday, I will present some data on foreign direct investment. India or China - who is ahead?
@fatmahasan66624 ай бұрын
Straight forward and to the point. Thank you!
@YUNIKARN4 ай бұрын
A pleasure. Thanks for watching!
@Thats_meTh4 ай бұрын
Thank you very much, Im an Economics student and I was struggling for 2 hours with this basic comand😂😂😂😂😂
@YUNIKARN4 ай бұрын
I am glad the video was useful. May the Force be with you!
@sunithakasarla7405 ай бұрын
Good informative discussion!
@YUNIKARN5 ай бұрын
Thanks, they did an awesome job!
@rajp96075 ай бұрын
Great discussion.
@YUNIKARN5 ай бұрын
Thanks, much appreciated. May the Force be with you!
@reubenmarfo98555 ай бұрын
Thank you! so I want to confirm what N is in the code... so loosely speaking can i say N is number of steps i want to forecast or predict for the interest rates?
@YUNIKARN5 ай бұрын
Yes, N refers to time. Everything is discrete
@hamzabouss5 ай бұрын
Thank you so much
@YUNIKARN5 ай бұрын
You're most welcome
@dagnachewgetnet92025 ай бұрын
Thank you very much professor, is this works for panel data also? Could you please give a lecture on comparing all panel data models ?
@YUNIKARN5 ай бұрын
I have done more on panel data in my Udemy course - see www.udemy.com/course/getting-started-with-stata/ I am also working on new material but this will take quite a bit of time. May the Force be with you!
@dka97565 ай бұрын
Hi, I have 4 dependent variables, when I run the hausman test for each one of them, 2 of them validate the random effect model, and the 2 others validate the fe model. Now which one to choose since I'm doing a multivariate regression? And on top of that, some of my dummy variables (usefull ones) are ommitted under fixed effect, but I really need to use them.
@YUNIKARN5 ай бұрын
I did a video on "Why does Stata drop my variables?", which will be published on Monday 1st April 2024 - April Fool's Day Special. Link: kzbin.info/www/bejne/eZirpph4ecZ4pLc If you have four dependent variables, it suggests that you will have four separate models to explain them. Of course, you can have FE or RE as these models are separate. If you do not know which one is actually dependent, then you need to explore causality (or causal order if you have a time dimension). May the Force be with you!
@victorvilchis5 ай бұрын
Hi, I utilised your video as part of my research and I want to scite this video, do you have other means to cite your work on Stata?
@YUNIKARN5 ай бұрын
Video sources can be cited using urls. By the way, the book "Getting started with Stata" (based on the Udemy course) should be published in 2025. So you could also cite the forthcoming book. Thanks for wacthing!
@reubenmarfo98555 ай бұрын
Thank you, if possible can you share the code of how the calibration of parameters was done through email?
@YUNIKARN5 ай бұрын
See my previous response
@reubenmarfo98555 ай бұрын
Hello, can you post the code of how you calibrated the parameters before putting them in the vasicek model?
@YUNIKARN5 ай бұрын
All codes are on GitHub. I did not use any code to calibrate the parameters. This is a separate issue
@reubenmarfo98555 ай бұрын
Thank you, if possible can you share the code of how the calibration of parameters was done through email?
@YUNIKARN5 ай бұрын
As I said, I did not cover calibration as this is a separate issue and requires a bit more finance background. I might do it in future
@mehdigeek5 ай бұрын
the d. function doesn't work for me
@YUNIKARN5 ай бұрын
No space. Say variable names is VAR. Then d.VAR without space
@mehdigeek5 ай бұрын
@@YUNIKARN it still doesn't work
@YUNIKARN5 ай бұрын
Have you tsset your data. Stata needs to know the time dimension
@FELIX-qr6vd6 ай бұрын
When I run the VIF command after having run the Corr command STATA tells me "not appropriate after regress, nocons; use option uncentered to get uncentered VIFs". What does that mean? And also, the Hausman Test tells me to use the fixed effect model, but when I use it, STATA omits my dummy variables in the result. "Omitted because of collinearity" What can I do now?
@YUNIKARN6 ай бұрын
You can do your on VIF. Just regress all explanatory variable one by one on the set of all other explanatory variables. Obtain the R squared. The VIF is then 1/(1-R squared). Or add a constant to your regression model. The implementation of the VIF command is a bit odd in Stata. Second problem: the fixed effects dummies seem to explain other dummies in the model. Stata drops these to avoid collinearity (the inverse of the data matrix does not exist as the matrix does not have full rank). Check the definitions of your dummies
@Britishdiary6 ай бұрын
Dear Professor, thank you very much for the informative video. I am touched that you took the time to create a video to answer my question. Thank you for helping me make one of the most important decisions in my career. Wishing you good health and continued success.
@YUNIKARN6 ай бұрын
Thanks for the interesting question - not an easy decision. I wish you all the best! Best wishes, Gerhard
@Britishdiary6 ай бұрын
Dear Professor, do you think it is a good idea to move from a senior lecturer at a teaching-focus university to a lecturer at a research-focus, Russell Group University? Thank you very much.
@YUNIKARN6 ай бұрын
Really good question. There are many things to consider (e.g., pension). I actually recorded a video. It should be ready on Monday 11th Macrh at 5pm UK time. May the Force be with you!
@Britishdiary6 ай бұрын
@@YUNIKARN Thanks, Professor. I am waiting for the video.
@scjay6 ай бұрын
that dog better not be vegan
@YUNIKARN6 ай бұрын
No, see gets home made chicken. I am also not vegan - just had a vegan day
@scottn10196 ай бұрын
@@YUNIKARNdon't have too many vegan days , that food looks like plasticene food
@YUNIKARN6 ай бұрын
Hahaha ... Will do a meat day soon
@simizy3726HAPCNW01855 ай бұрын
@@YUNIKARNI am so happy that you and your dog aren’t vegan, I already wanted to comment about it saying how bad it is but I see that you, nor the dog are vegan👍
@monkynutss7116 ай бұрын
Very useful! Thank you!
@YUNIKARN6 ай бұрын
Glad it was helpful!
@ramfaitori6 ай бұрын
Thank you for this clip. Can you provide suggestions for using Microsoft Excel and Microsoft Power BI?
@YUNIKARN6 ай бұрын
I have a playlist focused on Excel for data analysis (kzbin.info/aero/PLtKGNX49fOCbdq_XS4ciWCW8OfZgNqJXc) - but no material on Power BI at the moment. I am working on a new Udemy course on Company Valuation, which will use Excel ... more to come.