| cv_table | R Documentation |
cv_table is used to analyse the coefficent of variation distribution of the chosen indicators.
cv_table(data,cv,boxplot=FALSE)
data |
a data frame containg the coefficient of variation for the direct and small area estimators |
cv |
formula identifing the coefficient of variation. |
boxplot |
logical scalar. Should the boxplot of the coefficient of variation be produced (default=FALSE)?. |
cv_table allows to evaluate the cv of the different estimators with respect to some well-known thresholds given by Statistics Canada (2009). For cv below 0.165 there are no rescrictions to the dissemination, for cv in the range 0.166-0.333 is suggested a publication with a warning, for cv above 0.333 the dissemination is not recommendent.
Object of class data.frame. The data frame contains informations about the number of cvs that fall within each class.
Developed by Andrea Fasulo
Statistics Canada, 2009, "Quality Guideline", Fifth edition, October 2009
# Load example data
data(SAEval_example)
# cv for the direct estimates
SAEval_example$cvd<-sqrt(SAEval_example$mse_d)/SAEval_example$y_d
#cv for the synthetic estimates
SAEval_example$cvsae<-sqrt(SAEval_example$mse_sa)/SAEval_example$y_syna
cv_data<-SAEval_example[,c("cvd","cvsae")]
SAEval_cvtable<-cv_table(data=cv_data,
cv=~cvd+cvsae)
SAEval_cvtable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.