Install

Stata has a great community of users who create tools to improve and increase the functionality of Stata. Throughout the tutorial, we will use several user written packages. Here we will show you how to find and install these packages. This process requires internet access.

User written files

Most user written commands are hosted at the Boston College Statistical Software Components (SSC) archive. However, there are packages that hosted on personal servers and on github, where the steps of installing them are slightly different.

About SSC

Within Stata, there is a command called ssc. It allows you to search for packages, update exisiting packages and install them.

I always recommend using the help command to find information before posting the questions online. The examples section of the help file typically answers most of my questions.

A better merge command

If you have used Stata’s merge command, you might have had to open the dataset(using dataset) that you want to merge to create/rename ID variables to be the same as master dataset(the data set currently in Stata). This requirement is no longer necessary with the user written package mmerge, as this package allows you to specify the using variable that you want to use to match on. Hence, you will no longer have to open and save over a using dataset to create identical variables in order to merge the two datasets.

mmerge was created by Jeroen Weesie (j.weesie@fss.uu.nl). Source: https://econpapers.repec.org/software/bocbocode/s420201.htm

[4]:
ssc install mmerge
checking mmerge consistency and verifying not already installed...
all files already exist and are up to date.

Screening command

Sometimes if you are doing a keyword search of a long string variable, you want to be able to detect simple spelling mistakes. For example, if you are trying to search for “bicycle” in a string variable, you will probably also want to detect “bicyle” as well. screening will enable you to specify how many characters have to be matched in a keyword.

screening was created by Federico Belotti and Domenico Depalo. Source: https://ageconsearch.umn.edu/record/159034/files/sjart_dm0050.pdf

[6]:
findit screening
[8]:
net install dm0050
checking dm0050 consistency and verifying not already installed...
installing into c:\ado\plus\...
installation complete.