pipsb installs from GPID-WB/pipsb and loads test .dta files from the private data repository GPID-WB/pip-sandbox directly into Stata memory.
By default, pipsb uses the latest GitHub release from the data repository. It reads data_catalog.csv from the root of that release, filters the catalog to .dta files for the requested ppp_year(), and then downloads the selected dataset.
pipsb can be installed separately from the private data repository:
net install github, from("https://haghish.github.io/github/")
github install GPID-WB/pipsbEach user needs their own fine-grained GitHub personal access token.
Create the token from your personal GitHub account:
- Profile photo
- Settings
- Developer settings
- Personal access tokens
- Fine-grained tokens
- Generate new token
Recommended settings:
- Resource owner:
GPID-WB - Repository access:
GPID-WB/pip-sandbox, or all repositories if needed - Repository permissions:
Contents = Read-only - Expiration: a reasonable period such as 90 or 180 days
Add the token to your personal profile.do:
global GPID_GITHUB_TOKEN "your_token_here"Then restart Stata.
To verify that the token is available:
display "$GPID_GITHUB_TOKEN"List the releases available in the private data repository:
pipsb, listreleasesWarning These are NOT official PIP releases. They are sandbox-data releases created before an official release.
List the available .dta files for the default PPP year in the latest release:
pipsbLoad a dataset from the latest release:
pipsb, filename(syears)Load a dataset from a specific release tag:
pipsb, ppp_year(2017) filename(aggregates) release(202603131536)- If the token is not found, check
profile.doand restart Stata. - If you get
401or403, confirm the token is fine-grained, hasContents: Read-onlyonGPID-WB/pip-sandbox, and has been authorized if required. - If you get
404, confirm the release tag, PPP year, file name, and repository access.
Keep the token local. Do not commit it to a repository or place it in shared code, email, chat, or screenshots.