Giter VIP home page Giter VIP logo

bcadata's Introduction

vfci

R-CMD-check

The R package vfci reproduces tables and figures in Adrian, Duarte and Iyer (2023), “The Market Price of Risk and Macro-Financial Dynamics”, CEPR Press Discussion Paper No. 17777.

Installation

You can install the development version of vfci from GitHub with:

# install.packages("devtools")
devtools::install_github("VFCI/vfci")

bcadata's People

Contributors

fernando-duarte avatar github-actions[bot] avatar matdehaven avatar

Watchers

 avatar

Forkers

allisterh

bcadata's Issues

Validate new data

When new data is pulled, we should run some basic validation unit tests to make sure the new data looks correct. I am attaching a basic validation file that I created for the VFCI project that we can use as a starting point.

validate_data.R.zip

Save vintages

In the future, we will update the data. When this happens, the old data that is being replaced by the new data should be saved. Over time, we will accumulate several vintages that can allow us to "go back in time" if we need to, and also to do real-time analysis.

GHA render-rmarkdown fails

When changing a .rmd file, the GHA render-rmarkdown throughs an error.

Tried adding a line to load the packages "knitr" and "rmarkdown", but that did not solve the error.

For now, can simply render rmarkdown documents locally and push them.

Implement function to pull new bcadata

This will be the main function of the package.

It pulls all of the data from sources online.

  • Function to pull FRED data (takes FRED key)
  • Function to pull TFP data (if possible)
  • Function to make the right transformations to the series
  • Function that combines the above, returns new bcadata

Add codecov?

I set up a Git Hub Action to test for code coverage in unit tests (i.e. are all functions executed during the testing process).

I think that to get the results to display nicely---including a badge on the ReadMe---we need to set up the repository on codecov, which is operated by Github. I tried going through and giving permissions, but I don't think I can do that for the VFCI organization repos.

Not pressing, just something to check out if we want.

Unit tests

Add unit tests with github action that fails if unit tests fail. As of now, I can only think of two, we can add more as we code or needs arise:

  • bca data is replicated (#11)
  • Data is validated (#9)

Replicate bca data

We would like to replicate bca data more closely, hopefully exactly. A first try may be using ALFRED.

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.