Learn R Programming

simPop (version 0.2.9)

addWeights-methods: Methods for Function addWeights

Description

allows to modify sampling weights of an dataObj or simPopObj-object. As input the output of calibSample must be used.

Arguments

Examples

Run this code
data(eusilcS)
data(totalsRG)
inp <- specifyInput(data=eusilcS, hhid="db030", hhsize="hsize", strata="db040", weight="db090")
addWeights(inp) <- calibSample(inp, totalsRG)

Run the code above in your browser using DataLab