Giter VIP home page Giter VIP logo

fbi's Introduction

fbi: Factor-Based Imputation for Missing Data

Build Status

The codes in the fbi package are developed based on the following papers:

Requirements

The fbi package requires the following three R packages:

  • stats
  • readr
  • pracma

They should be installed prior to the installation of the fbi package:

install.packages("stats")
install.packages("readr")
install.packages("pracma")

Installation

The fbi package can be installed from github:

devtools::install_github("cykbennie/fbi")

Reference Manual

Refer to the fbi.pdf file for details.

Vignette

Download factor_fred.html for an example using the FRED-MD dataset (https://research.stlouisfed.org/econ/mccracken/fred-databases/).

Author

License

This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file for details.

Acknowledgments

fbi's People

Contributors

cykbennie avatar paullabonne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fbi's Issues

Error in fredqd() while retrieving the dataset using the current civ file

To replicate:

fl <- "https://files.stlouisfed.org/files/htdocs/fred-md/quarterly/current.csv" df <- fredqd(file = fl, transform = TRUE)

It returns the following error:

Error in 1:ind_notna : result would be too long a vector
In addition: Warning message:
In min(which(is.na(rawdata[, 1]))) :
no non-missing arguments to min; returning Inf

missing most recent observations

For most vintages the most recent month seems to be missing when loading (downloaded) fredmd csv files with the fred_md() function. For instance when loading the first vintage (1999-08.csv), the last available month is June whereas some observations are available for July in the csv file.

After looking in the code I think it is because of line 51 in fredmd.R : rawdata <- rawdata[1:(nrow(rawdata) - 1), ] # remove NA rows
I think the last raw should be removed only if it contains only missing values

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.