Some folks will teach intro / applied metrics soon. They might find @Gabors_Data useful. Textbook w/ tidy tables to random forest & event studies, case studies, data, code #stata #Python #Rstats. ♥️ from Card, @paulgp @causalinf @JohnVanReenen @i_am_nickbloom and more. #econtwitter share appreciated.
Get started
https://gabors-data-analysis.com/getting-started
Get a copy
https://www.amazon.com/Data-Analysis-Business-Economics-Policy/dp/1108716202/
#Stata #Python #rstats #econtwitter
Dropping a new guide on the latest #Stata map package: #geoplot, by Ben Jann. The Guide provides a comprehensive step-by-step walkthrough for this highly flexible and customizable command:
https://medium.com/the-stata-guide/maps-in-stata-iii-geoplot-a764cf42688a
In this guide, learn how to make the maps from scratch. The data and scripts are provided for a complete replication.
Add multiple layers, completely customize colors, sizes, widths, legend entries. Add scale bars, arrows, and a lot more.
#Stata #geoplot #dataviz #maps
The following #Stata packages have been updated on #SSC:
joyplot v1.62
bumparea v1.1
bumpline v1.1
sankey v1.6
spider v1.21
circlepack v1.1
bimap v1.7
streamplot v1.51
These include major feature updates, syntax improvements, options for more control, and many other enchancements.
Links on GitHub:
https://github.com/asjadnaqvi
Links on Twitter:
https://twitter.com/AsjadNaqvi/status/1568327049437237252
Version 1.7 of #Stata #bimap package is now out which introduced a much requested feature: support for discrete variables.
More info and examples on #GitHub:
https://github.com/asjadnaqvi/stata-bimap
A major update to the #Stata
#sankey v1.6 is now out:
- Complete rewrite of the base routines. The code is faster and more flexible.
- Complete control over sorting nodes and flows.
- Own flows can now be collapsed.
-sortby() has been split into sort1() which orders the nodes and sort2() which orders the flows.
- Support has been added for numerical variables to allow custom sorting.
More info and examples on #GitHub:
https://github.com/asjadnaqvi/stata-sankey
Did you know that in #stata a new variable created with floor( ) will automatically be a float? This means Stata doesn't maintain precision for a very large variable that started as a double.
Issue discovered while using floor(census_block_group / 10) to get Census tract values and finding they weren't merging properly.
This default could easily cause noise in data without people knowing it.
The default could instead be that the new variable takes on the class of the original variable.
Adding two more #Stata #cartogram #maps for the #USA. The geography is based on the #NYTimes version.
Data is extracted from the #ACS 2021 population estimates using the #getcensus package. Right map uses the new version of #bimap.
#Stata #cartogram #maps #usa #nytimes #acs #getcensus #bimap
A few comments: (1) #LLM models like #ChatGPT are trained on existing knowledge base, which is larger for open-source softwares. This makes sense since these programs are decentralized. For #Stata, first looks the manuals and help files. Both r very extensive!
---
RT @arieda_muco
While AI boosts productivity for coders worldwide, @Stata coders have noticed that ChatGPT isn't providing helpful answers. Despite @Stata's popularity in the…
https://twitter.com/arieda_muco/status/1654407929242451968
Two more experimental maps in #Stata with new NUTS layers & data. The aim here is to create a shapefile for representing all the territories as it is officially in Eurostat maps. This part is almost done. Still need to align the different NUTS layers, and add labels.
On the data… https://twitter.com/i/web/status/1653020917377687554
#Stata #sankey v1.5 is now out with the following changes:
- Value labels can be dropped from either side of the flows
- Value and box label scaling added to adjust to relative stocks & flows
- sorby(., reverse option added)
More info and installations:
https://github.com/asjadnaqvi/stata-sankey
This is happening in about two weeks!
Not only we will go over advance mapping features in #Stata, we will also make some #cartograms!
A preview of the maps we will learn to make 👇
---
RT @statauk
Are you keen to master Map Making in Stata?
Register Now -> https://pulse.ly/j89thvgqp1
Dr. Asjad Naqvi will be back on May 10 to deliver a follow-up session to his introductory Maps course, providing a comprehensive, hands-on masterclass in Ma…
https://twitter.com/statauk/status/1646060957716692993
"swift_red" never disappoints.
#Stata for the #swifties
---
RT @VirginiaTangel
@Stata I am still rocking the Taylor Swift theme by @asjadnaqvi (thank you) 🙂🙂
https://github.com/asjadnaqvi/stata-schemepack
https://twitter.com/VirginiaTangel/status/1651639399082336276
So let's continue with more new features in #Stata #v18. An important update is to causal inference methods, namely the newer #DID estimations.
In case you guys don't know, I have been diligently following the developments and tracking them here:
https://asjadnaqvi.github.io/DiD/
I just finished installing #Stata v18. I will keep adding stuff to this thread 🧵 as I explore the new graph features.
So posts will be coming in over the next few days. Let's go! 👇👇
Also a list of #Stata #DataViz packages here:
---
RT @asjadnaqvi
A 🧵 to keep track of my @Stata #dataviz packages 👇
1) 𝘀𝗰𝗵𝗲𝗺𝗲𝗽𝗮𝗰𝗸: Has a large collection of ready-to-use #Stata #schemes.
Two I personally use all the time are white_tableau (clean white) and neon (black background).
https://github.com/asjadnaqvi/Stata-schemes
https://twitter.com/AsjadNaqvi/status/1568327049437237252
#GitHub #projects is a great tool for organizing the #repositories and their issues. As the #Stata packages get used more and more, bugs are found, and enhancement features are requested. Projects gives a centralized overview of these issues.
#github #projects #repositories #Stata
This is an area bar graph where the idea is to fix the percentage and adjust the bins. Same logic is use for marimekko or mosaic plots.
If you want to make these in #Stata there is a guide here:
https://medium.com/the-stata-guide/stata-graphs-mosaic-marimekko-plots-49caa27c5554
and a package here:
https://github.com/asjadnaqvi/stata-marimekko
---
RT @kwekuoa
The “percentogram”—a histogram binned by percentages of the cumulative distribut…
https://twitter.com/KwekuOA/status/1646551177910157317
A really cool #Stata package for binning and fitting data!
---
RT @leo__ahrens
I wrote a Stata ado intended as a one-stop-shop for scatter plots with fit lines. It creates plots like these with simple syntax. I’ll talk you through the possibilities in this thread.
net install scatterfit, from(https://raw.githubusercontent.com/leojahrens/scatterfit/master)
https://twitter.com/leo__ahrens/status/1646150698202025990
#Maps in #Stata Part 2 on May 10!
A three hour, fully-packed, intensive course.
Here is a link to my #StataViz portfolio for some inspiration:
https://asjadnaqvi.github.io/stata-portfolio/tags/map/
We will learn to make some of these maps!
---
RT @statauk
Are you keen to master Map Making in Stata?
Register Now -> https://pulse.ly/j89thvgqp1
Dr. Asjad Naqvi will be back on May 10 to deliver a follow-up session to his introductory Maps c…
https://twitter.com/statauk/status/1646060957716692993