plot.smoothing_fitsae {tipsae} | R Documentation |
Plot Method for smoothing_fitsae
Object
Description
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
.
Usage
## S3 method for class 'smoothing_fitsae'
plot(x, size = 2.5, alpha = 0.8, ...)
Arguments
x |
A |
size |
Aesthetic option denoting the size of scatterplots points, see |
alpha |
Aesthetic option denoting the opacity of scatterplots points, see |
... |
Currently unused. |
Value
A ggplot2
object.
See Also
smoothing
to produce the input 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)
[Package tipsae version 1.0.2 Index]