ME_growth: Calculate a growth rate

Description Usage Arguments Value

Description

Time series data is frequently converted to growth rate data. In the conversion to growth rates a data point within the data series is lost.

Usage

1
ME_growth(X, mindate = NULL, maxdate = NULL)

Arguments

X

is a time series data frame. There should be a column containing a date class variable and a column containing a macroeconomic variable.

mindate

is a date in character fomat, in the form YYYY-mm-dd specifying the minimum date in the date set

maxdate

is a date in character fomrate, in the form YYYY-mm-dd specifying the maximum date in the date set

Value

a dataframe is returned by this function containing two different growth rates, a growth rate per unit of time in the data and an annual growth rate.

@examples ME_growth(X) @examples ME_growth(X, "1970-01-01") @examples ME_growth(X, "1965-09-07", "2010-01-01")

@import dplry

@export


greegreg/AdvancedR documentation built on May 24, 2019, 4:05 a.m.