Code Monkey home page Code Monkey logo

mhurdle's Introduction

Overview

Data collected by means of households' expenditure survey may present a large proportion of zero expenditures due to many households recording, for one reason or another, no expenditure for some items. Since the seminal paper of Tobin (1958), a large econometric literature has been developed to deal correctly with this problem of zero observations. In particular, a good selection mechanism was introduced by Cragg (1971) and a purchasing mechanism by Deaton and Irish (1984). We propose an encompassing approach with a general three equations model for which a zero expense can be observed either because:

  • the good is not selected,
  • the good is selected but not consumed because of lack of financial resources,
  • the good is selected and consumed, but purchased infrequently so that no expense is observed during the period of the survey.

mhurdle provides a set of tools to estimate (by maximum likelihood) and test (using especially Vuong test) this generalized hurdle model.

Installation

mhurdle is on CRAN.

install.packages("mhurdle")

For the development version, use

install.packages("devtools")
devtools::install_github("ycroissant/mhurdle")

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.