Pareto_diagram: Pareto diagrams - Pareto 1, GPD and EPD

Description Usage Arguments Value References Examples

Description

Pareto diagrams - Pareto 1, GPD and EPD

Usage

1
2
Pareto_diagram(data, weights = rep(1, length(data)), p = 0.01,
  q = 0.1, viz = TRUE)

Arguments

data

numeric, a vector of observations

p

numeric, the probability level (default 0.01 for the top 1%)

q

numeric, the probability level to model a Pareto distribution (default 0.1)

viz

logical, TRUE to plot the estimates

weight

numeric, a vector of weights (default is equal weights)

Value

a table with estimations of top share and a graph

References

Charpentier & Flachaire (2019) Pareto Models for Top Incomes hal-02145024

Examples

1
2
3
4
################ Pareto diagams on Synthetic Data
url_1 <- "https://github.com/freakonometrics/TopIncomes/raw/master/dataframe_yw_1.csv"
df <- read.table(url_1,sep=";",header=TRUE)
## Not run: Pareto_diagram(data = df$y, weights = df$w)

freakonometrics/TopIncomes documentation built on July 7, 2019, 8:06 a.m.