shares_fit | R Documentation |
Estimate a distribution nonparametrically based on tabulations of a distribution which include:
fractiles of the data,
the share of each bracket.
shares_fit(
p,
average = NULL,
bracketshare = NULL,
topshare = NULL,
bracketavg = NULL,
topavg = NULL,
first_threshold = NULL,
last_invpareto = NULL,
bottom_model = NULL,
top_model = NULL,
lower_bound = 0,
binf = NULL,
fast = FALSE
)
p |
A vector of values in [0, 1]. |
average |
The average over the entire distribution. |
bracketshare |
The corresponding bracket share. |
topshare |
The corresponding top share. |
bracketavg |
The corresponding bracket average. |
topavg |
The corresponding top average. |
first_threshold |
The value of the first threshold. If |
last_invpareto |
The inverted Pareto coefficient at the last threshold.
Use |
bottom_model |
Which model to use at the bottom of the distribution?
Only relevant if |
top_model |
Which model to use at the top of the distribution?
Either |
lower_bound |
Lower bound of the distribution. Only relevant if
|
binf |
Asymptotic Pareto coefficient. If |
fast |
Use a faster but less precise method (split-histogram).
Default is |
An object of class gpinter_dist_orig
.
Thomas Blanchet, Juliette Fournier, Thomas Piketty
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.