Description Usage Arguments 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
Table of top shares (using three thresholds)
1 2 3 4 5 6 7 |
data |
dataframe obtained from |
p |
numeric, the probability level (default 0.01 for the top 1%) |
q |
numeric (possibly a vector), the probability level to model a Pareto distribution (default |
md |
logical |
1 2 3 4 5 6 7 8 9 | set.seed(123)
x <- rpareto1(200, 1, alpha=1.5)
w <- rgamma(200, 10, 10)
data_0 <- tidy_income(income = x, weights = w)
Table_Top_Share(data_0,q=c(.1,.05))
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)
Table_Top_Share(data_1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.