This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
A new article sheds light on two important extensions to the survey package in R, enhancing how analysts handle complex survey data. The article by Benjamin Schneider, MS, a Westat Senior Statistical Associate, appears in The Survey Statistician: “Extensions of the survey package in R providing a new user interface and resampling methods for especially complex sample designs (PDF).”
The first extension, srvyr, integrates with the popular tidyverse suite, making survey data analysis more intuitive and accessible for users familiar with modern data science workflows. The second extension, svrep, expands the kinds of complex survey data that can be analyzed with replication methods in open-source software. The package implements flexible replication methods, including the generalized bootstrap and the generalized replication method developed by Robert Fay, PhD, a Senior Statistical Fellow at Westat.
These advancements are particularly beneficial for those working with official statistics, as they streamline workflows and improve analytical capabilities. By incorporating these tools, researchers can conduct sophisticated survey analyses with greater efficiency and accuracy.