plot.smoothing_fitsae function

Plot Method for smoothing_fitsae Object

Plot Method for smoothing_fitsae Object

The plot() method provides (a) the boxplot of variance estimates, when effective sample sizes are estimated through kish method; (b) a scatterplot of both original and smoothed estimates versus the area sample sizes, when variance smoothing is performed through methods ols and gls.

## S3 method for class 'smoothing_fitsae' plot(x, size = 2.5, alpha = 0.8, ...)

Arguments

  • x: A smoothing_fitsae object.
  • size: Aesthetic option denoting the size of scatterplots points, see geom_point documentation.
  • alpha: Aesthetic option denoting the opacity of scatterplots points, see geom_point documentation.
  • ...: Currently unused.

Returns

A ggplot2 object.

Examples

library(tipsae) # loading toy dataset data("emilia_cs") # perform smoothing procedure smoo <- smoothing(emilia_cs, direct_estimates = "hcr", area_id = "id", raw_variance = "vars", areas_sample_sizes = "n", var_function = NULL, method = "ols") plot(smoo)

See Also

smoothing to produce the input object.

  • Maintainer: Silvia De Nicolò
  • License: GPL-3
  • Last published: 2024-09-13

Useful links