Giter Club home page Giter Club logo

survey_consumer_finances's Introduction

Survey of Consumer Finances

Summary

This is a repository that contains analyses around the Survey of Consumer Finances (SCF) put out by the Federal Reserve every 3 years. This takes a cross-sectional survey of the finances of U.S. families, in terms of their balance sheets, pensions, income, demographics, etc.

Analysis of the data associated to the survey is a bit complicated, for several reasons:

  • The survey design of the SCF itself is complicated. It involves the creation of 5 "replicates" for each family that participates in the survey. The data associated to each replicate is slightly different and imputed using a method described in this paper. This provides both privacy and more robust statistics due to the imputation of missing data in a variety of ways. Associated to this design is a collection of replicate weights that dictate how to analyze the data obtained from the replicates in an appropriate way.
  • It is a long survey, with many questions that have conditional responses based on previous questions;
  • The variables are coded in a variety of ways that require an examination of the codebook to interpret;
  • The public data set has a lot of censoring (e.g. of racial demographics) to protect the privacy of participants.

Methodology

  • The data is loaded using the lodown package as recommended on the SCF website, which automatically obtains and parses the SCF survey data into 5 chunks of data, one for each replicate.

    It also obtains the replicate weight data and parses it into a format suitable for usage with the survey package.

  • The survey package is used to analyze the data. This package understands how to perform calculations on surveys when replicate weights are given, e.g. summary statistics, fitting linear models, etc.

Usage

Each analysis is contained in a subfolder of this directory. They are generally wrapped up in R project files and have dependencies managed via packrat, which should make them completely reproducible. Go to a subfolder and view the README for more specific information.

survey_consumer_finances's People

Contributors

mpancia avatar

Watchers

James Cloos avatar  avatar

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.