plot.smoothing_fitsae | R Documentation |
smoothing_fitsae
ObjectThe 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, ...)
x |
A |
size |
Aesthetic option denoting the size of scatterplots points, see |
alpha |
Aesthetic option denoting the opacity of scatterplots points, see |
... |
Currently unused. |
A ggplot2
object.
smoothing
to produce the input object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.