Pareto_diagram: Pareto diagrams - Pareto 1, GPD and EPD

Description Usage Arguments Value Examples

View source: R/hello.R View source: R/code_package_v4_juin_2019.R View source: R/code_package_v3_juin_2019.R View source: R/code_package.r View source: R/code_package.R

Description

Pareto diagrams - Pareto 1, GPD and EPD

Usage

1
Pareto_diagram(data, p = 0.01, q = 0.1, viz = TRUE)

Arguments

data

dataframe obtained from tidy_income function

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

Value

a table with estimations of top share and a graph

Examples

1
2
3
4
url_1 <- "https://github.com/freakonometrics/TopIncome/raw/master/data_csv/dataframe_yw_1.csv"
df <- read.table(url_1,sep=";",header=TRUE)
data_1  <-  tidy_income(income = df$y, weights = df$w)
## Not run: Pareto_diagram(data_1)

freakonometrics/TopIncome documentation built on Oct. 16, 2021, 5:58 p.m.