Miklos Koren Profile Banner
Miklos Koren Profile
Miklos Koren

@korenmiklos

2,948
Followers
4,600
Following
167
Media
2,093
Statuses

Professor at @CEU . Data Editor at @RevEconStudies .

Vienna, Austria
Joined April 2010
Don't wanna be here? Send us removal request.
Pinned Tweet
@korenmiklos
Miklos Koren
2 months
I still have space left to display what’s playing. Hopefully not much longer.
Tweet media one
0
1
10
@korenmiklos
Miklos Koren
2 months
MacroModelling.jl by @kockerols provides a unified interface for DSGE modeling. Includes dynare. My fellow macroeconomists: No more excuses to stick to MATLAB. #juliacon2024
Tweet media one
7
98
668
@korenmiklos
Miklos Koren
9 months
It's official: I got an ERC Advanced Grant to study the macroeconomics of managers. I am really excited about this research agenda. What better way to kick off the project than the Empirical Management Conference at Stanford?
22
3
250
@korenmiklos
Miklos Koren
8 months
This can indeed be super confusing. Which is why I wrote a Stata command to correct the event study coefficient after xthdidregress. Pick a baseline time period (-1 or any other) and report levels relative to that, not changes.
@jondr44
Jonathan Roth
8 months
Here's an illustration from a simple simulated DGP w/non-staggered timing and a linear violation of PT. TWFE shows a straight line. But some of the other methods show a kink or jump at the time of treatment
Tweet media one
2
13
99
5
42
196
@korenmiklos
Miklos Koren
5 years
Daughter comforting me after a journal rejection: "J K Rowling got rejected 12 times before publishing Harry Potter." #econtwitter #AcademicTwitter
1
25
187
@korenmiklos
Miklos Koren
3 years
Want to please your coauthors? Use our @Stata style guide. Better yet, ask them to use it, too. > Koren, Miklós. (2021). CEU MicroData Stata Style Guide (1.0). Zenodo.
4
41
190
@korenmiklos
Miklos Koren
3 years
We built a #wordle game from scratch in our @ceu #Python class. A completely enjoyable game in about 50 lines of code.
4
20
138
@korenmiklos
Miklos Koren
2 years
I will be representing Team @Stata
@GaborBekes
Gabor Bekes
2 years
How about this. Really cool debate coming up on 6 December at @ceu ! Join in person or online! #STATA team: @korenmiklos + @martonfleck #Python team: @arieda_muco + Gayan Gadyan, #Rstats team: @grand_schemer + Zsuzsa Holler. +Yours truly, as MC.
Tweet media one
11
40
143
4
9
117
@korenmiklos
Miklos Koren
2 years
I never quite understood why @Stata users are so afraid of relative paths. Among the hundreds of .do files I review regularly, only a handful do not hard code their absolute path in the code. 1/n
7
11
111
@korenmiklos
Miklos Koren
3 years
This is so good, @cameron_pfiffer .
1
17
103
@korenmiklos
Miklos Koren
4 years
My favorite @Stata trick is to balance a panel by reshaping twice: reshape wide employment, i(tax_id) j(month); reshape long. What is yours?
10
2
96
@korenmiklos
Miklos Koren
1 year
How to make your research reproducible from day 1? We are doing a workshop with @AeaData @larsvil at the @EEANews congress: We will start with an empty folder and do a mini-project together. Join us in Barcelona on August 28.
2
17
92
@korenmiklos
Miklos Koren
2 months
There are tradeoffs in using different programming languages. @mschoberml Some make you happy, some make you fast. I will also feature a Pareto frontier in my Kezdi.jl talk tomorrow.
Tweet media one
2
7
81
@korenmiklos
Miklos Koren
3 months
Fő állításaink: 1. Karácsony legtöbb szavazója tiszás. 2. Vitézy legtöbb szavazója fideszes. 3. A 24e érvénytelen szavazatból kb 18ezret a Fidesz szavazói adtak le.
17
11
82
@korenmiklos
Miklos Koren
3 years
Our @PLOSONE paper with Rita Pető on social distancing is my first where we followed reproducible research practices from the start. Here are the steps we took, the tools we used, and how they helped us later. An #econtwitter thread on tooling. 1/n
2
11
75
@korenmiklos
Miklos Koren
2 years
The data editors of @aeadata , @EJ_RES , @reveconstudies , @canjecon , and @InquiryWEAI launch the Data and Code Availability Standard DCAS describes an appropriate replication package and helps authors comply with journals' data and code availability policies
0
24
72
@korenmiklos
Miklos Koren
6 years
1. Working with data requires coding skills in most jobs: academia, policy, consulting or business analytics. So the question is not whether we teach students to code, but when and how.
7
24
70
@korenmiklos
Miklos Koren
2 years
Results are in after the @CEU debate about @Stata , #RStats and #Python . Not many people changing camps. Most changes are from R to Python. @Stata fans are loyal.
Tweet media one
5
6
70
@korenmiklos
Miklos Koren
4 months
The answer is 5%. Data cleaning (replace, collapse, egen, and the like) and programming (local, if, foreach, and the like) take up 88% of commands. The rest is exploratory data analysis (tabulate, summarize) and plotting. #EconTwitter
2
8
51
@korenmiklos
Miklos Koren
1 year
Achievement unlocked. My paper with Caselli, Lisicky and Tenreyro is cited in the Economic Report of the President.
Tweet media one
3
2
49
@korenmiklos
Miklos Koren
6 months
I did a horse race of Python, Julia, Rust and DuckDB for some simple string matching. To my surprise, Python comes out winning. If you can improve your favorite language’s performance, submit a PR. All code written by ChatGPT.
4
8
49
@korenmiklos
Miklos Koren
2 years
16 rules for sharing code and data. All endorsing journals ask the same. Some rules are harder than others, but data editors help you meet them.
1
14
48
@korenmiklos
Miklos Koren
2 years
This is a bit annoying, but no reason to write code that does not reproduce on someone else's computer. Please use relative paths: 4/4
3
5
48
@korenmiklos
Miklos Koren
4 months
Analyzing 250 Stata replication packages submitted to @RevEconStudies . 4k do files, 799k lines of code. What fraction of commands you think are estimation commands like regress or reghdfe? #EconTwitter
0-10%
594
10-20%
238
20-30%
154
30-40%
252
4
9
48
@korenmiklos
Miklos Koren
4 months
@jaredcrubin With my Stata package eventbaseline (on ssc), you can pick your base period for event study graphs. Relative to -3 there is no effect. You can also use baseline(average), to express all ATTs relative to the average of the pretreatment periods.
2
8
47
@korenmiklos
Miklos Koren
3 years
Make feels like a secret weapon: helps productivity enormously, yet very few economists use it. I have been meaning to to create a short free course on Make to share this secret. Give me a nudge by signing up. #EconTwitter
2
13
43
@korenmiklos
Miklos Koren
2 years
Now that the Stata-R-Python debate is over, I can be non-partisan about this topic. A long thread. Python won. Congrats to @arieda_muco and Gayan Gadyan. 1/
3
9
41
@korenmiklos
Miklos Koren
1 year
Most courses at @ceu econ are switching to #Python . We are looking for a cloud platform that best serves our students. If you have a favorite, please edit directly on GitHub. @arieda_muco @GaborBekes @kissoliver91
6
6
41
@korenmiklos
Miklos Koren
2 months
And we’re a go!
0
16
40
@korenmiklos
Miklos Koren
4 years
"Take a walk" (or run, in my case) does it, all the time.
3
5
40
@korenmiklos
Miklos Koren
4 months
Stata allows command names to be abbreviated. Some of the longer ones are almost always shortened by users. This is a bad practice because the short names are inconsistent and hard to read. Some of the abbreviation rules are arcane and confusing…
Tweet media one
4
1
41
@korenmiklos
Miklos Koren
3 years
I think @JuliaLanguage 's motto should be "Come for the performance, stay for the extendability." It's great that you show multiple dispatch early on.
1
3
40
@korenmiklos
Miklos Koren
2 months
Kezdi.jl lets you roll your own functions to be used in any of its Stata-like commands. Every command can be executed on a subset of the data like ‘ @replace y = 5 @if y < 5” The 10x speed is just a bonus.
Tweet media one
3
7
40
@korenmiklos
Miklos Koren
4 years
Do you work in applied theory, financial economics, or applied machine learning? We have three open tenure-track positions at @ceu Economics in Vienna. #EconTwitter
0
20
40
@korenmiklos
Miklos Koren
5 years
@betanalpha "I cannot, for the life of me, figure out why this paper was written." Other referees also had issues with our motivation, but did not put it so eloquently.
0
1
37
@korenmiklos
Miklos Koren
2 years
I redid our sample @Stata code from last week in @JuliaLanguage . An annotated solution:
3
4
35
@korenmiklos
Miklos Koren
5 years
@economeager This is my defense of Big-O notation: there is always a large enough problem for which you cannot just buy a faster computer.
1
7
35
@korenmiklos
Miklos Koren
1 year
Learning and loving Tidier.jl by @kdpsinghlab . Even though I never used R, I agree with the decision to copy a well-designed and popular interface. @mutate (log_gdp = log(gdp)) is pretty readable.
1
3
32
@korenmiklos
Miklos Koren
1 year
Getting caught by both the reproducibility police and the typography police.
Tweet media one
2
1
32
@korenmiklos
Miklos Koren
2 months
Coming soon.
Tweet media one
3
2
32
@korenmiklos
Miklos Koren
3 years
My colleagues say I have conservative views about big data. I love collecting new sources of data, but strongly believe in applying the old-school rules of statistics and economics.
2
3
30
@korenmiklos
Miklos Koren
5 months
I shouldn’t be doing this while preparing for my talk, but my ADHD got the better of me. Here’s how insanely fast @duckdb is. @AsjadNaqvi
2
5
30
@korenmiklos
Miklos Koren
2 months
using Pkg; Pkg.add(“Kezdi”) and keep the stars coming
Tweet media one
0
5
28
@korenmiklos
Miklos Koren
2 months
How do you check the schedule of JuliaCon? By running JuliaCon.jl, of course:
Tweet media one
1
3
28
@korenmiklos
Miklos Koren
2 years
OpenAI can help faculty too, not just students.
Tweet media one
0
0
25
@korenmiklos
Miklos Koren
3 years
@DSchindlerEcon "This is not the question you should be asking. Why don't you ask X instead?"
2
2
26
@korenmiklos
Miklos Koren
2 years
I am too slow for science. Before I even had time to read "your favorite DSGE sucks," it is debunked. This is peak #EconTwitter @JoshuaBrault3 , I'll use your reanalysis in today's macro class!
@JoshuaBrault3
Joshua Brault
2 years
Instead, what you’ll find is that the volatility of variables in the simulated data from their code is dramatically lower than what you find from DYNARE. The attached image is simulated output growth using identical calibrations.
Tweet media one
1
1
21
1
1
25
@korenmiklos
Miklos Koren
8 months
@_adasgupta It is a nontrivial task for the authors. Which is why as data editors ( @AeaData , @JoanLlull_econ @FlorianOswald Marie Connolly, @maiaguell ), we recommend keeping your code and documentation in shareable state from “day 1.”
1
6
24
@korenmiklos
Miklos Koren
2 months
#juliacon2024 is at the stadium of PSV Eindhoven. Finally Julia and football coming together?
Tweet media one
2
2
24
@korenmiklos
Miklos Koren
6 years
@ClausWilke @NPR If Dr is reserved for those who do actual doctoring, Judge should be reserved for those who have actual judgement.
0
0
23
@korenmiklos
Miklos Koren
2 months
Those of #EconTwitter at @JuliaConOrg , make yourselves known in the comments.
Tweet media one
5
2
22
@korenmiklos
Miklos Koren
5 years
After a great workshop at U Vienna, checking out the new campus of @ceuhungary .
Tweet media one
0
0
23
@korenmiklos
Miklos Koren
2 months
@mhsatman @kockerols So recipe for economists: if field == “macro” Pkg.add(“MacroModelling”) elseif field == “applied micro” Pkg.add(“Kezdi”) end
0
2
23
@korenmiklos
Miklos Koren
5 years
My colleagues and I are giving a "Data Wrangling for Economists with @Stata " workshop at the @EEANews conference. This is a pilot @datacarpentry workshop. Apply by July 25
1
8
22
@korenmiklos
Miklos Koren
4 months
Some of the capital goods of my production process.
Tweet media one
3
0
23
@korenmiklos
Miklos Koren
2 months
What happens when you compile a piece of @JuliaLanguage code? This graph is critical for writing a good Stata compiler for Kezdi.jl
Tweet media one
1
4
23
@korenmiklos
Miklos Koren
4 years
Which businesses suffer most from social distancing? We built a model and analyzed O*NET and CBP data to find businesses relying on F2F communication and physical presence. In the U.S., 49 million workers are in affected occupations. 1/4
1
15
22
@korenmiklos
Miklos Koren
2 months
My treat for myself from Holland. Good things come with age.
Tweet media one
0
0
21
@korenmiklos
Miklos Koren
7 months
Super excited that my aspirational submission to JuliaCon got in. Now we have to build it. It will be awesome.
1
0
21
@korenmiklos
Miklos Koren
4 years
@PHuenermund I love it. No-nonsense (~MATLAB-like) syntax with multidimensional arrays in a proper programming language. Fast, too, especially in parallel. Here are some code examples we used in a 1st-year macro class:
0
1
21
@korenmiklos
Miklos Koren
4 years
Can go from opening Twitter to opening a bottle of wine.
1
0
20
@korenmiklos
Miklos Koren
4 months
Great discussion today with Stata and Julia fan colleagues in preparation for this package.
@Tidierjl
Tidier.jl
4 months
👀
Tweet media one
Tweet media two
0
0
7
1
0
20
@korenmiklos
Miklos Koren
3 years
@AeaData Fully agree. You want to use relative paths so that your coauthors can also run the code. But `cd` wreaks havoc with relative paths (relative to where, again?). Run all your code from the root of the project folder.
2
1
20
@korenmiklos
Miklos Koren
4 years
@KirbyKNielsen Deleting old files that are no longer needed.
2
0
20
@korenmiklos
Miklos Koren
6 years
1+2+3= We need to teach coding first, as part of literacy. Focusing on applications with zero statistics: web scraping, basic text processing. Only then teach statistics, when all students are comfortable power users of their computers.
2
1
20
@korenmiklos
Miklos Koren
4 years
Járvány, városok és gazdaságpolitika. Hosszú beszélgetésem az @Azonnali1 -val.
1
5
19
@korenmiklos
Miklos Koren
4 years
Know bash, git or Stata? Come help out at the @EEANews @datacarpentry workshop August 23-24. Due to strong interest, I need more helpers who assist learners in debugging problems they encounter during live coding. All online, join for as much as you can.
0
13
19
@korenmiklos
Miklos Koren
2 months
I got phished. Got a message in AirBnB about an upcoming trip. Credible URL, credibly cute mixture of Slovak and English. Asked for some details about the trip. had the basics already filled in. Like what time we are arriving. Then asked for a credit card. 1/
13
1
18
@korenmiklos
Miklos Koren
2 years
I am crying tears of joy. This saves so much time. Also endangers the business model of Google, StackOverflow, etc. 1/2
Tweet media one
2
1
19
@korenmiklos
Miklos Koren
7 years
Tremendous support pouring in for CEU. Amazing people. Amazing support. We are HONORED. Keep CEU Strong!
0
4
18
@korenmiklos
Miklos Koren
5 years
Trade is good, even for volatility. The average country has 36% lower GDP variance in 2007 than in 1972 because of lower trade costs.
@QJEHarvard
QJE
5 years
#QJE Feb 2020 #9 : “Diversification Through Trade,” by Caselli, Koren ( @korenmiklos ), Lisicky, and Tenreyro:
1
5
11
0
1
18
@korenmiklos
Miklos Koren
1 year
There are already 16 journals endorsing the Data and Code Availability Standard, more to come soon.
0
2
18
@korenmiklos
Miklos Koren
7 years
Apply now and next year #seeuatceu
Tweet media one
1
9
18
@korenmiklos
Miklos Koren
2 months
I’ve stood on stages before but never this big. Kezdi.jl talk is live at 3pm.
Tweet media one
1
1
17
@korenmiklos
Miklos Koren
3 years
One of my favorite data science coding books has a new edition! With a chapter on Make!! And the book is free!!! How cool is that?
@jeroenhjanssens
Jeroen Janssens
3 years
🎉 The second edition of Data Science at the Command Line is out! 🎉 You can read the entire book for free at It took a good year to rewrite and expand the first edition, so I'd like to say a few things. 🧵
Tweet media one
22
248
1K
1
2
18
@korenmiklos
Miklos Koren
1 year
@arieda_muco @Stata OpenAI should ask Nick Cox for a complete training data for @Stata
2
0
18
@korenmiklos
Miklos Koren
3 years
An exciting paper by @atrisovic et al studies R code published in ~2000 replication packages. Only 25% of them run out of the box. About a third of the others can be fixed by two easy changes. Can you guess what these two changes are?
1
5
18
@korenmiklos
Miklos Koren
4 years
@nickchk No, but replication packages should be more prominent.
1
0
17
@korenmiklos
Miklos Koren
4 years
Tomorrow I will deliver my first online class at @CEUhungary . It will be crude and glitchy at first, but if you would like to learn about the Dornbusch-Fischer-Samuelson model, you are welcome to join at 9am Budapest time:
0
0
17
@korenmiklos
Miklos Koren
6 years
2. Students don’t appreciate tools without seeing the benefits. Teaching coding with “hello world” and “1+1=2” is pointless.
1
1
16
@korenmiklos
Miklos Koren
2 months
Early @JuliaLanguage memories ahead of @JuliaConOrg next week. I started with 0.4. Rewrote the whole codebase for a macro paper from Matlab. Lot of work, but two orders of magnitude faster and better code quality. When the revision came around, upgraded to 0.6. —
1
0
16
@korenmiklos
Miklos Koren
1 year
There are some demonstrations and counter-demonstrations in Vienna about a drag queen storytime for kids. I think the city has spoken.
Tweet media one
1
0
17
@korenmiklos
Miklos Koren
3 months
I’m working on a Julia project of reasonable complexity and, man, we would be dead without unit tests.
@carlvellotti
Carl Vellotti
3 months
All unit tests passed.
Tweet media one
170
2K
16K
2
1
17
@korenmiklos
Miklos Koren
6 months
I am old enough to have started email with PINE. If you’re looking for a distraction free email client, I have good news for you. It still works.
Tweet media one
5
1
17
@korenmiklos
Miklos Koren
5 years
Hungarian Election Office: We spent huge amounts on our great new website. Users after polls close: Let's check the results. Hungarian Election Office: Oops.
Tweet media one
2
4
16
@korenmiklos
Miklos Koren
2 months
Come and grab your Kezdi.jl sticker at #juliacon2024 We will be on the REPL stage Friday 3pm.
Tweet media one
1
0
16
@korenmiklos
Miklos Koren
4 years
@VollCornHirsch @FiveThirtyEight No, because the uncertainty in @FiveThirtyEight model has been calibrated to polls, not results. Unless they retrain the model in real time, even their conditional prediction (what if Biden wins Arizona) will be way off.
2
0
16
@korenmiklos
Miklos Koren
1 year
@eje612 it’s still in development so if you have questions or comments, please create an issue on GitHub.
0
3
16
@korenmiklos
Miklos Koren
5 months
I have a Sachverständiger coauthor. Go @julianhinz !
@kielinstitute
Kiel Institute (IfW Kiel)
5 months
Zur Frage der Wirtschaftsbeziehungen zwischen 🇩🇪 und 🇨🇳 war @julianhinz gestern als Sachverständiger im Bundestag. Abhängigkeit nicht so groß ist, wie oft angenommen & kommuniziert. Details👉 📺Aufzeichnung der Anhörung 👉
Tweet media one
0
8
45
0
1
16
@korenmiklos
Miklos Koren
6 years
@katewaldock @Noahpinion I agree we learn/teach very little about *how* research is done. Leaving students to learn by doing can be very frustrating. I believe the how is also teachable.
1
0
16
@korenmiklos
Miklos Koren
4 years
@rlmcelreath A key misunderstanding in scientific computing is that software engineering best practices are only for large-scale production systems. Wrong. These practices shine not when the exact same code runs a zillion times, but when code has to be changed often. Exactly like in science.
0
1
15
@korenmiklos
Miklos Koren
9 months
One rarely sees an application where Simpson's paradox actually works.
@DondenaCentre
Dondena Centre
9 months
Salvatore Lattanzio tells an alternative angle of the story the declining gender pay gap in Italy and the US: Convergence is driven by men's fall closer to women.
Tweet media one
2
2
13
1
1
16