Giter Club home page Giter Club logo

fredmdqd.jl's Introduction

FredMDQD

Stable Dev Build Status Coverage

What is FredMDQD?

FredMDQD simplifies the process of working with Fred MD or Fred QD data.

What are Fred MD and Fred QD?

Fred MD and Fred QD are curated sets of monthly and quarterly indicators by Michael W. McCracken at the Federal Reserve Bank of St. Louis. Fred MD comprises 126 monthly indicators, while Fred QD consists of 245 quarterly indicators.Observations start in January 1959 for Fred MD and in Q1 1959 for Fred QD.

How do I load Fred MD or Fred QD data?

FredMDQD offers straightforward methods to load Fred MD/QD data. The simplest approach loads the most recent version of either dataset.

using FredMDQD
using DataFrames

fmd = FredMD()  # Loads most recent version of Fred MD
fqd = FredQD()  # Loads most recent version of Fred QD

The returned objects contain:

  • original::DataFrame: Untouched Fred MD/QD data.
  • transformed::DataFrame: Data transformed according to McCracken's recommended stationarity adjustments.
  • tcodes::Vector{Int}: Transformation codes for each variable except the date. More information on transformation codes can be found using @doc FredMDQD.fred_transform

For loading specific vintage data, provide a date as an argument:

using Dates

d = Date("2022/03", dateformat"yyyy/mm")
fmd = FredMD(d)
fqd = FredQD(d)

Manual downloads of Fred MD/QD data can be loaded using file paths:

path_md = "path to manual download of Fred MD"
path_qd = "path to manual download of Fred QD"
fmd = FredMD(path_md)
fqd = FredQD(path_qd)

What does a variable mean?

Fred MD/QD use abbreviations for variables that are not always intuitive. To find the meaning behind an abbreviation, or to find an abbreviation corresponding to a specific indicator, the seach_appendix function can be used. search_appendix searches through the Fred MD/QD appendices to find a specific search term. For example, Fred MD includes the indicator 'DPCERA3M086SBEA'. To find the meaning behind this indicator, run

search_appendix(:MD, "DPCERA3M086SBEA")

This returns a DataFrame of search results matching the search criteria. The indicator 'DPCERA3M086SBEA' corresponds to "Real personal consumption expenditures".

Similarly, to find an indicator in Fred QD corresponding to house prices, search for 'house' to see if any such indicators exist.

search_appendix(:QD, "house")

The search results indicate that Fred QD includes USSTHPI corresponding to "All-Transactions House Price Index for the United States (Index 1980 Q1=100)".

Where can I find more information?

For additional details, visit the official Fred MD/QD website.

fredmdqd.jl's People

Contributors

enweg avatar dependabot[bot] avatar

Stargazers

tcosnr avatar

Watchers

 avatar

fredmdqd.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.