This dataset represents a probability survey derived from the
1997--2008 cycles of the National Health Interview Survey (NHIS).
It is intended for use
alongside sc and sp1 to illustrate the multi-reference
calibration method implemented in the nonprobsampling package.
data(sp2)A data frame with 35525 observations and 11 variables:
Age category (factor with 4 levels: 1 = 55--59, 2 = 60--64, 3 = 65--69, 4 = 70+)
Marital status (factor with 4 levels: 1 = Married Or Living As Married, 2 = Widowed, 3 = Divorced or Separated, 4 = Never Married)
Race category (factor with 4 levels: 1 = White, 2 = Black, 3 = Hispanic, 4 = Other)
Employment status (factor with 2 levels: 0 = Not Working, 1 = Working)
Diabetes diagnosis indicator (factor with 2 levels: 0 = No, 1 = Yes)
Body mass index category (factor with 4 levels: "Normal", "Overweight", "Obese", "Morbidly Obese")
Smoking status (factor with 3 levels: 1 = Never Smoker, 2 = Former Smoker, 3 = Current Smoker)
General comorbidity indicator (factor with 2 levels: 0 = No, 1 = Yes)
Sampling weights (numeric)
Stratum identifier for complex survey design (numeric)
Primary sampling unit identifier for complex survey design (numeric)
The dataset includes auxiliary variables shared with the nonprobability
sample sc, enabling the construction of pseudo-weights to adjust
for participation bias. Survey design variables and sampling weights are
provided to support design-consistent estimation.
data(sp2)
str(sp2)
summary(sp2)
Run the code above in your browser using DataLab