plot.dfl_decompose {ddecompose} | R Documentation |
Plot decomposition terms for quantiles
Description
The function plots decomposition terms for quantiles estimated
with dfl_decompose
over the unit interval.
Usage
## S3 method for class 'dfl_decompose'
plot(
x,
...,
confidence_bands = TRUE,
confidence_level = 0.95,
uniform_bands = FALSE
)
Arguments
x |
an object of class "dfl_decompose", usually, a result of a call to [dfl_decompose()] with [statistics = "quantiles"]. |
... |
other parameters to be passed through to plot function. |
confidence_bands |
If 'TRUE' (default) and if standard errors have been bootstrapped, confidence bands are plotted. |
confidence_level |
numeric value between 0 and 1 (default = 0.95) that defines the confidence interval
plotted as a ribbon and defined as |
uniform_bands |
If 'FALSE' (default), pointwise confidence bands are computed. Otherwise, uniform bands are constructed based on the bootstrapped Kolmogrov-Smirnov statistic (see summary.dfl_decompose). |
Value
a ggplot illustrating the decomposition terms for quantiles.
Examples
data("men8305")
flf_model <- log(wage) ~ union * (education + experience) + education * experience
flf_male_inequality <- dfl_decompose(flf_model,
data = men8305,
weights = weights,
group = year
)
plot(flf_male_inequality)