get.US.data: Get US data for estimation procedure

Description Usage Arguments Examples

View source: R/get.US.data.R

Description

Downloads US data from FRED website and saves as a dataframe funtion takes 3 arguments - the output folder, filename, and an option to chose between output specifications.

Usage

1
2
get.US.data(folder = "data/input/", file = "rstar.data.us.csv",
  pcGDP = FALSE)

Arguments

folder

the csv to perform the HLW estimation on. Please see elp file for required column names

file

a string for the country you are performing the estimates on - this is used in the output file name

pcGDP

logical. (default) FALSE uses real GDP, TRUE uses real GDP per capita

Examples

1
2
3
4
5
folder <-  "data/inputData/"     # output folder
file <-  "rstar.data.us.csv"     # output filename
pcGDP <- FALSE                   # False uses real GDP, true uses real GDP per capita

get.US.data(folder = folder, file = file)

JannesRed/rStar documentation built on Nov. 11, 2019, 4 p.m.