Top_Incomes: Top Incomea plot

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

Description

Top Incomea plot

Usage

1
2
3
4
5
6
7
Top_Incomes(
  data,
  p = 0.01,
  thr = seq(0.85, 0.999, by = 0.001),
  tail_index = TRUE,
  ...
)

Arguments

data

dataframe obtained from tidy_income function

p

probability level (default 0.01)

thr

numeric vector of probability levels to model a Pareto distribution (default is seq(.85,.999,by=.001) from 0.85 up to 0.999)

tail_index

logical to plot the tail index (default TRUE)

Value

one or two graphs (depending on tail==TRUE)

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: Top_Incomes(data_1)

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