Description Usage Arguments Value Examples
View source: R/code_package.r View source: R/code_package.R
Estimate Top Share
1 |
data |
a vector of observations |
p |
(default |
q |
(default |
method |
(default |
weight |
a vector of weights |
edp.direct |
logical (default |
estimation of the share of income/wealth owned by the top p percent of the population, assuming that the top q percent of the distribution is Pareto distributed
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)
TopShare(data_1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.