GDPC1: Gross Domestic Product

Description Usage Format Notes Source Examples

Description

GDPC1 Real Gross Domestic Product

Usage

1

Format

An xts object of Real Gross Domestic Product.

Notes

Real gross domestic product is the inflation adjusted value of the goods and services produced by labor and property located in the United States.

For more information see the Guide to the National Income and Product Accounts of the United States (NIPA) - https://www.bea.gov/resources/methodologies/nipa-handbook.

BEA Account Code: A191RX

Source

U.S. Bureau of Economic Analysis https://fred.stlouisfed.org/data/GDPC1.txt

Examples

1
2
3
4
5
6
7
data(GDPC1)
log_RGDP <- 100*log(GDPC1)

gdp_cycle <- yth_filter(log_RGDP, h = 8, p = 4, output = c("cycle", "random"), family = gaussian)

main <- "Log of Real GDP cycle and random walk"
plot(gdp_cycle, grid.col = "white", legend.loc = "topright", main = main)

Example output

Loading required package: xts
Loading required package: zoo

Attaching package:zooThe following objects are masked frompackage:base:

    as.Date, as.Date.numeric

neverhpfilter documentation built on June 18, 2021, 5:09 p.m.