Welcome to the Education Data Portal Stata Package repository. You'll need an internet connection to install and use the package.
NOTE: By downloading and using this programming package, you agree to abide by the Data Policy and Terms of Use of the Education Data Portal.
This example walks you through installing the package and using the Education Data Portal to pull data for a specific college and major by race and gender for all years.
Before you install the package, run the following:
ssc install libjson
Then, the following command will install, or if the package is already installed, update the education data package.
ssc install educationdata, replace
If you are having trouble, first try running the following:
adoupdate
Note that it can sometimes take a small amount of time for the package to be updated on SSC, as it involves a manual step to submit, per the maintainer's instructions. To get the latest version from Github, you can run:
net install educationdata, replace from("https://urbaninstitute.github.io/education-data-package-stata/")
If you're still having trouble with this command, uninstall any existing installations using the instructions below, close and re-open Stata, then re-run the commands above.
If you run into the error server refused to send file
or similar errors, your firewall may be blocking access to Stata's ability to download content, or Stata may have a conflict with other programs installed on your operating system or in your organization. Note that this may also block your ability to download data via an API, so this may not solve all concerns, but in most tested cases, this method should solve the problem. First, download the zip file of the package, by copying the following to your browser:
https://urbaninstitute.github.io/education-data-package-stata/educationdata.zip
Unzip the file, and do one of two things:
- Type
. personal
in Stata, and note the location of your personal ado directoy, i.e.C:\ado\personal\
- Move all the extracted files from the zip file to that personal directory
OR
- Note the filepath of the extracted files, e.g.,
D:/Users/Username/Downloads/educationdata/
- Type
net install educationdata, force from("D:/Users/Username/Downloads/educationdata/")
in Stata, replacing the path in thefrom()
command with the filepath you noted in step 1
First, ensure you are connected to the internet. Then run one of the simpler examples, such as getting the metadata for a dataset:
educationdata using "college ipeds directory", meta
Next, try downloading a subset of the dataset:
educationdata using "college ipeds directory", sub(year=2011 fips=12)
Use the help
command to read about all of the commands and dataset options:
help educationdata
ado uninstall educationdata
If you recieve the error criterion matches more than one package
and you're running Stata 14 or newer, run the following:
adoupdate
ado uninstall educationdata
To view the changes made to the package over time, see the changelog.
This software is licensed under the MIT License.