What Language Should You Use for Econometrics?

  Рет қаралды 3,901

Econometrics, Causality, and Coding with Dr. HK

Econometrics, Causality, and Coding with Dr. HK

Күн бұрын

There are plenty of tools and languages you can use these days for doing econometrics in. What are they, and what are they good for (or not good for)? In this video I cover six popular options for doing econometrics in: Stata, R, Python, Matlab, Julia, and Excel, and discuss the kinds of tasks each is best suited for, and the places where they run into problems. Which one fits the stuff you need to do best?

Пікірлер: 24
@bl8413
@bl8413 Жыл бұрын
I have been watching videos on this channel for months and I refer back to the Effect frequently and I just now realized that you are the same person when you introduced yourself at the beginning of the video 🤯
@Antowan
@Antowan Жыл бұрын
I myself have a bias skew towards R. It is very versatile and was used to teach my econ program
@tayoukachukwu3105
@tayoukachukwu3105 Жыл бұрын
Thanks for this insightful comparison. Really helpful. I have been struggling on where to focus on, especially because I am mostly interested in doing causal econometrics and impact evaluation in the coming years. I decided to spend more time and improve on Stata and R only. Maybe in the future I may look at Python and Julia, but for now I think Stata and R would serve my econometric needs. And this video has reinforced my decision. Looking forward to more insightful videos on best practices in 21st century econometrics😁
@chuckbecker4983
@chuckbecker4983 7 ай бұрын
Well done, thank you!
@blaisepascal3905
@blaisepascal3905 2 ай бұрын
I learned most of these languages and in the following order: Stata - Python - R - Julia And by far R and Julia are the best! (At least for me)
@v2blaster228
@v2blaster228 Жыл бұрын
Hey Nick, I recently graduated from my economics major and your videos did a tremendous job in helping me nail my econometrics and causal inference classes in the last year of my studies. Now I'm a data scientist doing demand forecasting, so I lean towards Python for versatility and scalability. Though I have been guilty of using Eviews to validate statistical test results. Thanks again for your work on KZbin!
@northernswedenstories1028
@northernswedenstories1028 Жыл бұрын
It's basically just R and Python in my view. But obviously it completely depends on what you're doing. Academia most likely R, anything else more likely Python and in-house solutions
@TimScharks
@TimScharks Жыл бұрын
*Stata is EXPENSIVE (you didn't mention) *MATLAB is EXPENSIVE (you mentioned) *R, Python, Julia, are FREE Excel....nevermind 🙂
@NickHuntingtonKlein
@NickHuntingtonKlein Жыл бұрын
I did mention that Stata is expensive when I mentioned that Matlab was
@TimScharks
@TimScharks Жыл бұрын
@@NickHuntingtonKlein true , true
@samuelwakuma8088
@samuelwakuma8088 Жыл бұрын
You are simply the bets
@TinaTina-xn9on
@TinaTina-xn9on Жыл бұрын
Dear the most genius sir :) , can you help me with two things please. I am analyzing panel data (twoways within fixed effect). I have around 900 observations. First, my residuals are not normally distributed. I read in many websites that in panel data the assumption of normality of residuals is ignored, however, I could not find any scientific resource to cite this information in my paper. Is it true that the normality assumption is ignored in panel data and my paper would not be rejected due to non-normality and is there any resource to cite from to support the ignorance of residuals normality assumption? I have been trying for months and changing the specification of the model either for the sample, time period, and the variables with no result. Second, Do I have to run the Ramsey's RESET test for (twoways within fixed effect model)? If yes, is this test appropriate or there is a specific one for the mentioned mode?
@NickHuntingtonKlein
@NickHuntingtonKlein Жыл бұрын
Normality of the error terms isn't very important. Normality is only important for ensuring that the sampling distribution is also normal (so you get correct standard errors) but even in that case, unless your errors are truly wild, like power-law distributed or something, your sampling distribution is pretty close to normal anyway and your standard errors will only be barely off. If you search Google scholar for "violations of normality assumptions regression" you'll find a whole buncha papers to this effect, for example Hubbard 1980 or Schmidt & Fenan 2018. As for RESET, run it if you suspect your model is misspecified. In general you don't want to run a robustness test unless you have reason to believe the assumption it's testing will fail. See my article on robustness tests nickchk.substack.com/p/robustness-tests-what-why-and-how
@kejtos5
@kejtos5 5 ай бұрын
While I prefer R's plotting, 1-indexing + python's vectorization and modelling still feels tagged on, I cannot say those have been worth coming back (for 'real' work) for me.
@EconometricsWithJan
@EconometricsWithJan 11 ай бұрын
Have you got any advice on interlinking languages? E.g. RStata or Rcall for interlinking Stata & R?
@NickHuntingtonKlein
@NickHuntingtonKlein 11 ай бұрын
I've written a few packages using Rcall and found it to be pretty fiddly. Usually if I'm working across languages in the same project I'll just run separate scripts for separate languages, saving objects to file instead to pass them back and forth. But I pretty much only do dual language when it's data cleaning in language A -> export -> everything else in B anyway so that's a workable pipeline. I think I'd only find interlinking functions useful if I were, say, running actual models in both languages, and that's not really something I do. That said, maybe the official Stata -> Python interlinkage works better than Rcall. I suspect the R Python pipeline is better too.
@davidgow4900
@davidgow4900 Жыл бұрын
Ken - they didn't mention SHAZAM, but they do mention Excel !
@shiminglu3940
@shiminglu3940 Жыл бұрын
Hi Dr.Nick I graduated from my mathematical economics degree from UWaterloo, are going to purse a master in machine learning. If I still want to do a PHD in economics will I still need to do a coursework master degree? btw, I had taken Advanced Micro, and Advanced macro economics plus 11 statics courses.. Any help is appreciated
@NickHuntingtonKlein
@NickHuntingtonKlein Жыл бұрын
I don't know about canada, but in the US it's not expected that you get a masters before doing a phd. Going straight from undergrad is probably more common, especially if you already have the necessary math background which it sounds like you do.
@shiminglu3940
@shiminglu3940 Жыл бұрын
@@NickHuntingtonKlein Aw thanks for your quick reply, also if you have any projects in econometrics pls let me know, I more than willing to gain an ra experience : )
@dany84ct
@dany84ct 2 ай бұрын
What do you think about c#?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 ай бұрын
I know they use it in computational finance sometimes. Wouldn't you have to program everything yourself from scratch though for most econometric applications? If you're willing to do that then c# would be fine but also so would any general purpose programming language.
@abduislam23
@abduislam23 Жыл бұрын
R will always be the best, at least for me 😂
@charlesripley2505
@charlesripley2505 18 күн бұрын
Totally true on Python. It clearly is not made for stats! I prefer R/Rstudio. They were made for stats. Sorry, but Stata is dated--way dated. It is also incredibly expensive and, thus, anti-poor people here and in developing countries!
R vs Python: Which should you learn for reproducible data science (CC168)
24:33
Regression Discontinuity (The Effect, Videos on Causality, Ep 61)
10:08
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 1,4 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 8 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
Stata vs R vs Python - What Should I Master to Analyze Data?
1:29:07
Central European University
Рет қаралды 3,7 М.
How Will Machine Learning Impact Economics? (Guido Imbens, Josh Angrist, Isaiah Andrews)
20:34
Python vs Julia
7:10
IBM Technology
Рет қаралды 124 М.
Why EVERYONE Is Struggling to Become a Data Analyst
8:03
Learn with Lukas
Рет қаралды 294 М.
How Software Defaults Threaten Science
16:31
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 1 М.
The Harsh Reality of Being a Data Analyst
7:39
Sundas Khalid
Рет қаралды 572 М.
R vs Python | Which should you learn in 2023?
6:40
Aaron Oliver
Рет қаралды 27 М.
Estimating Regression Discontinuity (The Effect, Videos on Causality, Ep 62)
11:11
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 1,6 М.
What is Expected of You as a College Student
11:52
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 1,4 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН