help freduse(SJ6-3: st0110)

Title

freduse -- Import Federal Reserve economic data

Syntax

freduse series_1 [series_2 ... series_k] [if] [in]
[, file clear]

Description

freduse imports data from the Federal Reserve Economic Data (FRED)
repository into Stata.

The FRED repository at http://research.stlouisfed.org/fred2/
contains more than 3,000 U.S. economic time series. Each time series is
stored in a separate file that also contains a string-date variable and header
with information about the series. freduse imports a series from a list
of files into a Stata dataset.

Options

file specifies that series refer to files stored on a local
disk. By default, freduse downloads the FRED series from the
repository and imports the downloaded data. You do not need to append
.txt to the series names, but you must prepend the directory if the
files are not in the current directory.

clear specifies that freduse replace any data in memory
with the imported data.

Remarks

The names of the FRED series are case sensitive. If the name of the series
specified at http://research.stlouisfed.org/fred2/ is in capital
letters, as most are, you must use capital letters when specifying the
name to freduse.

Examples

. freduse GS1M CPN3M GS5

. freduse mydir/GS1M mydir/CPN3M mydir/GS5, file clear

Original Author

David Drukker

StataCorp

ddrukker@stata.com

Update Authors

John Coglianese

Federal Reserve Board

john.m.coglianese@frb.gov

Jacob Williams

Federal Reserve Board

jacob.m.williams@frb.gov