All Projects → thomasblanchet → gpinter

thomasblanchet / gpinter

Licence: MIT license
R package for generalized Pareto interpolation

Programming Languages

r
7636 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
Stata
111 projects

gpinter: R package for generalized Pareto interpolation methods

Generalized Pareto Interpolation is a method for reconstructing complete distributions based on tabulations that only contain information on a few thresholds and bracket shares. It is usually applied in the study of income and wealth, but it can also be used with other types of data.

For more detail on generalized Pareto interpolation, please see T. Blanchet, J. Fournier and T. Piketty, “Generalized Pareto curves: theory and applications”, 2017.

Installation

You can install this package using the following R code:

install.packages("devtools")
devtools::install_github("thomasblanchet/gpinter")

Documentation

For the explanations of how the package works, please see the package's vignette and the documentation of each individual function by typing ?function_name in the R console.

Note for Stata users

Although there is no native Stata command equivalent to gpinter, you can apply generalized Pareto interpolation from within Stata by calling R code with the user-written rsource command. This example .do file demonstrates how to make this work.

Online Application

If you do not want to use R, you can still run the online web application built on the package. Alternatively, you can run in locally on your computer using the R code:

library(gpinter)
run_app()

To run that code, you will need additional R packages not installed by default with gpinter. You can install them all with the following command:

devtools::install_github("thomasblanchet/gpinter",
    dependencies = c("Depends", "Imports", "LinkingTo", "Suggests"))
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].