{"id":2492,"date":"2023-11-14T15:43:44","date_gmt":"2023-11-14T14:43:44","guid":{"rendered":"https:\/\/www.istat.it\/?page_id=2492"},"modified":"2024-04-29T17:52:18","modified_gmt":"2024-04-29T15:52:18","slug":"sampling-strata","status":"publish","type":"page","link":"https:\/\/www.istat.it\/en\/classifications-and-tools\/methods-and-software-of-the-statistical-process\/design-phase\/sampling-strata\/","title":{"rendered":"Sampling Strata"},"content":{"rendered":"\n<p>The contents related to SamplingStrata are shown in the following sections:<\/p>\n\n\n<section class=\"gblock accordion_livelli white-bg  py-0\"  aria-labelledby=\"section-1\"><div class=\"container p-lg-0 block_count_1\" data-blockcount=\"1\"><div class=\"row pb-2\">\t\t<div class=\"accordion bianco\" id=\"accordion_1liv_0_block_07f510b9d1697d6d6ca3164804573c79\">\r\n\t\t\t\t\t\t\t<div class=\"accordion-item liv1\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"accordion-header\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"accordion-button collapsed\" type=\"button\" \r\n\t\t\t\t\t\t\t\tdata-bs-toggle=\"collapse\" data-bs-target=\"#collapse_al_1_1liv_block_07f510b9d1697d6d6ca3164804573c79\" aria-expanded=\"false\" aria-controls=\"collapse_al_1_1liv_block_07f510b9d1697d6d6ca3164804573c79\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDescription\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/h2>\r\n\t\t\t\t\t\t\t\t\t\t<div id=\"collapse_al_1_1liv_block_07f510b9d1697d6d6ca3164804573c79\" class=\"accordion-collapse collapse\" \r\n\t\t\t\t\t\tdata-row=\"0\" \r\n\t\t\t\t\t\tdata-depth=\"1\" \r\n\t\t\t\t\t\t\t\t\t\t\t\tdata-bs-parent=\"#accordion_1liv_0_block_07f510b9d1697d6d6ca3164804573c79\">\r\n                        <div class=\"row\">\r\n                                                            <div class=\"accordion-body col-12\">\r\n                                    <p>When designing a sampling survey, usually constraints are set on the desired precision levels regarding one or more target estimates (the Y\u2019s). If a sampling frame is available, containing auxiliary information related to each unit (the X\u2019s), it is possible to adopt a stratified sample design. For any given strati\ufb01cation of the frame, in the multivariate case it is possible to solve the problem of the best allocation of units in strata, by minimizing a cost function subject to precision constraints (or, conversely, by maximizing the precision of the estimates under a given budget). The problem is to determine the best stratification in the frame, i.e., the one that ensures the overall minimal cost of the sample necessary to satisfy precision constraints. The X\u2019s can be categorical or continuous; continuous ones can be transformed into categorical ones. The most detailed strati\ufb01cation is given by the Cartesian product of the X\u2019s (the atomic strata). A way to determine the best stratification is to explore exhaustively the set of all possible partitions derivable by the set of atomic strata, evaluating each one by calculating the corresponding cost in terms of the sample required to satisfy precision constraints. This is unaffordable in practical situations, where the dimension of the space of the partitions can be very high. Another possible way is to explore the space of partitions with an algorithm that is particularly suitable in such situations: the genetic algorithm. The R package SamplingStrata, based on the use of a genetic algorithm, allows to determine the best strati\ufb01cation for a population frame, i.e., the one that ensures the minimum sample cost necessary to satisfy precision constraints, in a multivariate and multi-domain case.<\/p>\n<p>The optimization of the sampling design starts by making the sampling frame available, defining the target estimates of the survey and establishing the precision constraints on them. It is then possible to determine the best stratification and the optimal allocation. Finally, we proceed with the selection of the sample.<\/p>\n<p>Formalizing, these are the required steps:<\/p>\n<ol>\n<li>analysis of the frame data: identification of available auxiliary information;<\/li>\n<li>manipulation of auxiliary information: in case auxiliary variables are of the continuous type, they must be transformed into a categorical form;<\/li>\n<li>construction of atomic strata: on the basis of the categorical auxiliary variables available in the sampling frame, a set of strata can be constructed by calculating the Cartesian product of the values of all the auxiliary variables;<\/li>\n<li>characterization of each atomic stratum with the information related to the target variables: in order to optimise both strata and allocation of sampling units in strata, we need information on the distributions of the target variables (means and standard deviations);<\/li>\n<li>choice of the precision constraints for each target estimate, possibly differentiated by domain;<\/li>\n<li>optimization of stratification and determination of required sample size and allocation in order to satisfy precision constraints on target estimates;<\/li>\n<li>analysis of the resulting optimized strata;<\/li>\n<li>association of new labels to sampling frame units, each of them indicating the new strata resulting by the optimal aggregation of the atomic strata;<\/li>\n<li>selection of units from the sampling frame with a stratified random sample selection scheme;<\/li>\n<li>evaluation of the found optimal solution in terms of expected precision and bias.<\/li>\n<\/ol>\n                                <\/div>\r\n                                                                                <\/div>\r\n                        \t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<div class=\"accordion-item liv1\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"accordion-header\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"accordion-button collapsed\" type=\"button\" \r\n\t\t\t\t\t\t\t\tdata-bs-toggle=\"collapse\" data-bs-target=\"#collapse_al_2_1liv_block_07f510b9d1697d6d6ca3164804573c79\" aria-expanded=\"false\" aria-controls=\"collapse_al_2_1liv_block_07f510b9d1697d6d6ca3164804573c79\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInformation\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/h2>\r\n\t\t\t\t\t\t\t\t\t\t<div id=\"collapse_al_2_1liv_block_07f510b9d1697d6d6ca3164804573c79\" class=\"accordion-collapse collapse\" \r\n\t\t\t\t\t\tdata-row=\"0\" \r\n\t\t\t\t\t\tdata-depth=\"1\" \r\n\t\t\t\t\t\t\t\t\t\t\t\tdata-bs-parent=\"#accordion_1liv_0_block_07f510b9d1697d6d6ca3164804573c79\">\r\n                        <div class=\"row\">\r\n                                                            <div class=\"accordion-body col-12\">\r\n                                    <p><strong>Status:<\/strong> validated<\/p>\n<p><strong>Author:<\/strong> Istat<\/p>\n<p><strong>Licence:<\/strong> <a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/GPL-2.txt\">GPL-2<\/a> | <a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/GPL-3.txt\">GPL-3<\/a><\/p>\n<p><strong>GSBPM code:<\/strong><\/p>\n<p>2.4 Design frame and sample<br \/>\n4.1 Create frame and select sample<\/p>\n<p><strong>Programming language:<\/strong> R<\/p>\n<p><strong>Keywords:<\/strong> optimal stratification, sample design, sample allocation, genetic algorithm<\/p>\n<p><strong>Contact:<\/strong><\/p>\n<p>name: Marco Ballin<br \/>\nemail: <a href=\"mailto:ballin@istat.it\">ballin@istat.it<\/a><\/p>\n                                <\/div>\r\n                                                                                <\/div>\r\n                        \t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<div class=\"accordion-item liv1\">\r\n\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"accordion-header\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"accordion-button collapsed\" type=\"button\" \r\n\t\t\t\t\t\t\t\tdata-bs-toggle=\"collapse\" data-bs-target=\"#collapse_al_3_1liv_block_07f510b9d1697d6d6ca3164804573c79\" aria-expanded=\"false\" aria-controls=\"collapse_al_3_1liv_block_07f510b9d1697d6d6ca3164804573c79\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSoftware and documentation\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/h2>\r\n\t\t\t\t\t\t\t\t\t\t<div id=\"collapse_al_3_1liv_block_07f510b9d1697d6d6ca3164804573c79\" class=\"accordion-collapse collapse\" \r\n\t\t\t\t\t\tdata-row=\"0\" \r\n\t\t\t\t\t\tdata-depth=\"1\" \r\n\t\t\t\t\t\t\t\t\t\t\t\tdata-bs-parent=\"#accordion_1liv_0_block_07f510b9d1697d6d6ca3164804573c79\">\r\n                        <div class=\"row\">\r\n                                                            <div class=\"accordion-body col-12\">\r\n                                    <p><strong>SOFTWARE DEPENDENCIES<\/strong><\/p>\n<p>R (version \u2265 2.15.0)<\/p>\n<p><strong>COPYRIGHT<\/strong><\/p>\n<p>Copyright 2016 Istat<\/p>\n<p>Licensed under the GNU General Public License (GPL), version 2 or subsequent. You may not use this work except in compliance with the Licence. You may obtain a copy of the Licence at:\u00a0<a href=\"http:\/\/www.gnu.org\/licenses\/licenses.en.html\">http:\/\/www.gnu.org\/licenses\/licenses.en.html<\/a>. Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an \u201cAS IS\u201d basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<\/p>\n<p><strong>DISCLAIMER<\/strong><\/p>\n<p>Istat assumes no responsibility for the results arising from use of the instrument that is inconsistent with the methodological guidance contained in the documentation available.<\/p>\n<p><strong>DOWNLOAD<\/strong><br \/>\nRelease date: 10\/02\/2023<\/p>\n<ul>\n<li><a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/SamplingStrata_1.5-4.zip\">SAMPLINGSTRATA Version 1.5-4 \u2013 Windows binaries<\/a><\/li>\n<\/ul>\n<ul>\n<li><a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2024\/03\/SamplingStrata_1.5-4.tar.gz\">SAMPLINGSTRATA Version 1.5-4 \u2013 Package source<\/a><\/li>\n<\/ul>\n<p><strong>INSTALLATION<\/strong><br \/>\nInstall the downloaded package from within R as follows:<br \/>\n&gt; install.packages(path_to_file, repos = NULL)<br \/>\nwhere the character path_to_file is the path to the .zip or .tar.gz file you downloaded.<\/p>\n<p><strong>TECHNICAL AND METHODOLOGICAL DOCUMENTATION<\/strong><\/p>\n<p><a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/Reference-Manual-SamplingStrata-v.-1.5-4.pdf\">Reference manual \u2013 SamplingStrata v. 1.5-4<\/a><\/p>\n<p>Vignettes:<\/p>\n<ul class=\"lista\">\n<li><a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/Optimization-of-sampling-strata-with-the-SamplingStrata-package.pdf\">Optimization of sampling strata with the SamplingStrata package<\/a><\/li>\n<li><a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/Spatial-sampling-with-SamplingStrata.pdf\">Spatial sampling with SamplingStrata<\/a><\/li>\n<li><a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/Use-of-models-in-SamplingStrata.pdf\">Use of models in SamplingStrata<\/a><\/li>\n<\/ul>\n<p><strong>OTHER DOCUMENTATION<\/strong><\/p>\n<p><a href=\"https:\/\/barcaroli.github.io\/SamplingStrata\/\">SamplingStrata website<\/a><\/p>\n<p>Barcaroli, G. 2014. \u201c<a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/SamplingStrata-An-R-Package-for-the-Optimization-of-Stratified-Sampling.pdf\">SamplingStrata: An R Package for the Optimization of Stratified Sampling<\/a>\u201c.\u00a0<em>Journal of Statistical Software<\/em>, Volume 61, Issue 4: 1-24.<\/p>\n<p>Ballin, M., and G. Barcaroli. 2013. \u201c<a href=\"https:\/\/www.istat.it\/wp-content\/uploads\/2023\/12\/Survey-Methodology12-2013.pdf\">Joint determination of optimal stratification and sample allocation using genetic algorithm<\/a>\u201c.\u00a0<em>Survey Methodology<\/em>, Volume 39, N. 2: 369-393.<\/p>\n                                <\/div>\r\n                                                                                <\/div>\r\n                        \t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t<\/div><\/div><\/section>","protected":false},"excerpt":{"rendered":"<p>The contents related to SamplingStrata are shown in the following sections:<\/p>\n","protected":false},"author":6,"featured_media":0,"parent":2387,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2492","page","type-page","status-publish","hentry"],"acf":[],"wpml_current_locale":"en_US","wpml_translations":[],"_links":{"self":[{"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/pages\/2492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/comments?post=2492"}],"version-history":[{"count":7,"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/pages\/2492\/revisions"}],"predecessor-version":[{"id":13520,"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/pages\/2492\/revisions\/13520"}],"up":[{"embeddable":true,"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/pages\/2387"}],"wp:attachment":[{"href":"https:\/\/www.istat.it\/en\/wp-json\/wp\/v2\/media?parent=2492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}