"The R Companion for Sampling: Design and Analysis, designed to be read alongside Sampling: Design and Analysis, Third Edition by Sharon L. Lohr (SDA; 2022, CRC Press), shows how to use functions in base R and contributed packages to perform calculations for the examples in SDA. No prior experience with R is needed. Chapter 1 tells you how to obtain R and RStudio, introduces basic features of the R statistical software environment, and helps you get started with analyzing data. Each subsequent chapter provides step-by-step guidance for working through the data examples in the corresponding chapter of SDA, with code, output, and interpretation. Tips and warnings help you develop good programming practices and avoid common survey data analysis errors. R features and functions are introduced as they are needed so you can see how each type of sample is selected and analyzed. Each chapter builds on the knowledge developed earlier for simpler designs; after finishing the book, you will know how to use R to select and analyze almost any type of probability sample"
Sharon L. Lohr Libri



This manual contains information for using SAS (R)software with the examples in the textbook Sampling: Design and Analysis, 3rd edition by Sharon L. Lohr. The survey design and analysis procedures in SAS/STAT (R) software provide a powerful platform for selecting samples and performing any analysis you would care to do with survey data.
The text is suitable for upper-level undergraduate or graduate statistics students, as well as non-statistics majors interested in sampling concepts. Students willing to engage with the rigor of survey statistics will find valuable insights. Recent updates enhance traditional survey sampling courses, addressing critical issues such as low response rates, non-probability surveys, and internet data collection, which have gained importance in recent years. This authoritative text teaches survey design and analysis through examples from various fields, including social sciences, public health, and agriculture. A foundational understanding of introductory statistics, including probability and linear regression, is recommended, with optional sections for those well-versed in mathematical statistics. The thoroughly revised third edition introduces a new chapter on nonprobability samples, detailing their use and evaluation. Over 200 new examples and exercises enrich the content. Additionally, a companion website offers datasets, computer code, and links to two supplementary books that provide step-by-step guides for using R or SAS software. Instructors can choose between the SAS or R companions for practical application.