Description Usage Arguments Value Author(s) Examples
Generates survey proportions based off of (ideally) an unweighted vector.
1 |
vector |
Numeric vector |
Numeric vector of proportions
Loren Collingwood <loren.collingwood@ucr.edu>
1 2 3 4 5 6 7 | #NOT RUN: READ IN DATA
data (wapoll)
#NOT RUN -- CREATE PROPORTIONS FROM TARGET DATA
age_current <- gen_survey_props(wapoll$age3) #1=18-40,2=41-65,3=66+; age3
age_current
gender_current <- gen_survey_props(wapoll$gender) #0=Male, 1=Female
gender_current
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.