Software

scatterfit

scatterfit is a package for Stata that allows the users to create publication-ready scatterplots with overlaid fit lines, using very simple syntax. Here are some examples.

A detailed tutorial on how to use the package as well as information on how to install are available on my GitHub page.

fedistr

fedistr is a package for Stata that plots distributions of variables after absorbing the variance from fixed effects (i.e. categorical controls) and linear covariates. Here are some examples.

A more detailed introduction to this command is available on Twitter. See my GitHub page for information on how to install the command.

isocodes

isocodes is a Stata package that creates variables containing standardized country codes based on an existing string variable. It uses the ISO3166 coding scheme, which defines both numeric and string codes for (most) countries of the world. The input string may contain full country names or various 2/3 letter string codes. The package automatically searches for the best fit so that the user need not specify the input string naming scheme in the syntax.

isocodes uses a combination of perfect matching and fuzzy matching via regular expressions. The command can therefore handle diverse country-name spelling conventions. The command also executes much faster than alternative packages.

Learn more about the command and its syntax in these Twitter/Bluesky threads. See my GitHub page for information on how to install the command in Stata.