soss {childfree} | R Documentation |
Read and recode Michigan State of the State (SOSS) data
soss(waves, extra.vars = NULL, survey = FALSE, progress = TRUE)
waves |
vector: a numeric vector containing the SOSS waves to include (currently available: 79, 82, 84, 85, 86) |
extra.vars |
vector: a character vector containing the names of variables to be retained from the raw data |
survey |
boolean: returns an unweighted data.frame if |
progress |
boolean: display a progress bar |
The State of the State Survey (SOSS) is
regularly collected by the Institute for Public Policy and Social Research (IPPSR) at Michigan State
University (MSU). Each wave is collected from a sample of 1000 adults in the US state of Michigan, and
includes sampling weights to obtain a sample that is representative of the state's population with respect
to age, gender, race, and education. The soss()
function reads the raw data from IPPSR's website, extracts
and recodes selected variables useful for studying childfree adults and other family statuses, then returns
either an unweighted data frame, or a weighted design object that can be analyzed using the survey
package. Questions necessary for identifying childfree adults have been asked in five waves, which each
include unique questions that may be of interest:
Wave 79 (May 2020) - Neighborhoods, Health care, COVID, Personality
Wave 82 (September 2021) - Trust in government, Critical Race Theory
Wave 84 (April 2022) - Trust in scientists, Autonomous vehicles, Morality
Wave 85 (September 2022) - Reproductive rights, Race equity
Wave 86 (December 2022) - Education, Infrastructure
Notes
Wave 79 did not include a "do not know" option for selected questions. Therefore, it is not possible to identify "undecided" or "ambivalent non-parent" respondents. This may lead other family status categories to be inflated.
Wave 82 originally included a 500 person oversample of parents, but they are excluded from nsfg(wave==82)
.
The provided sampling weights are designed to be used in the analyses of individual waves. Combining data from multiple waves may require using adjusted weights.
A data frame or weighted svydesign object containing variables described in the codebook available using vignette("codebooks")
.
If you are offline, or if the requested data are otherwise unavailable, NULL is returned.
unweighted <- soss(waves = 86) #Request unweighted data
if (!is.null(unweighted)) { #If data was available...
table(unweighted$famstat) / nrow(unweighted) #Fraction of respondents with each family status
}
weighted <- soss(waves = 86, survey = TRUE) #Request weighted data
if (!is.null(weighted)) { #If data was available...
survey::svymean(~famstat, weighted, na.rm = TRUE) #Estimated prevalence of each family status
}