Description Usage Arguments Value Examples
Simulate the true response to a yes/no response question in a given population with specified opinions for sex, race/ethnicity, age, and geography
1 2 | simulate_true_response_age(geovector, odds_geography, odds_sex,
odds_raceethnicity, odds_age)
|
geovector |
A vector of geographies specified as a two letter
abbreviation or a 5-digit FIPS code. Each geography must be the entire U.S.
( |
odds_geography |
Numeric vector specifying the opinion odds of the
survey respondents by geography in the same bins as |
odds_sex |
Numeric vector specifying the opinion odds of the survey
respondents by sex in the order male, then female. For example, |
odds_raceethnicity |
Numeric vector specifying the opinion odds of
the survey respondents by race/ethnicity in the order white alone, Hispanic
or Latino, black alone, Asian alone, and other, for example,
|
odds_age |
Numeric vector specifying the opinion odds of the
survey respondents by age in the following bins: under 18 years, 18 to 24
years, 25 to 44 years, 45 to 64 years, 65 years and over, for example,
|
A data frame with 3 columns (value
, answer
, and
result
) that tabulates the true opinion on the yes/no question
in the given population.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.