gen_survey_props: gen_survey_props

Description Usage Arguments Value Author(s) Examples

Description

Generates survey proportions based off of (ideally) an unweighted vector.

Usage

1

Arguments

vector

Numeric vector

Value

Numeric vector of proportions

Author(s)

Loren Collingwood <loren.collingwood@ucr.edu>

Examples

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

lorenc5/Rweights3 documentation built on May 29, 2019, 11:05 p.m.