compare_plot_fh: Shows plots for the comparison of estimates

Description Usage Arguments Value

View source: R/compare_plot.R

Description

For all indicators or a selection of indicators two plots are returned. The first plot is a scatter plot of estimates to compare and the second is a line plot with these estimates.

Usage

1
2
3
4
compare_plot_fh(direct, model, indicator = "all", MSE = FALSE,
  CV = FALSE, label = "orig", color = c("blue", "lightblue3"),
  shape = c(16, 16), line_type = c("solid", "solid"),
  gg_theme = NULL)

Arguments

direct

optional, an object of type "emdi","direct", representing point and MSE estimates.

model

an object of type "emdi","model", representing point and MSE estimates.

indicator

optional character vector that selects which indicators shall be returned: (i) all calculated indicators ("all"); (ii) each indicator name: "Mean", "Quantile_10", "Quantile_25", "Median", "Quantile_75", "Quantile_90", "Head_Count", "Poverty_Gap", "Gini", "Quintile_Share" or the function name/s of "custom_indicator/s"; (iii) groups of indicators: "Quantiles", "Poverty", "Inequality" or "Custom".If two of these groups are selected, only the first one is returned. Defaults to "all". Note, additional custom indicators can be defined as argument for model-based approaches (see also ebp) and do not appear in groups of indicators even though these might belong to one of the groups.

Value

A scatter plot and a line plot comparing direct and model-based estimators for each selected indicator obtained by ggplot.


akreutzmann/fayherriot documentation built on Aug. 19, 2019, 12:22 p.m.