Description Usage Arguments Examples
allows to modify sampling weights of an dataObj
or
simPopObj
-object. As input the output of
calibSample
must be used.
1 2 3 4 5 6 7 | addWeights(object) <- value
## S4 replacement method for signature 'dataObj'
addWeights(object) <- value
## S4 replacement method for signature 'simPopObj'
addWeights(object) <- value
|
object |
an object of class |
value |
a numeric vector of suitable length |
1 2 3 4 5 6 7 8 | data(eusilcS)
data(totalsRG)
inp <- specifyInput(data=eusilcS, hhid="db030", hhsize="hsize", strata="db040", weight="db090")
## Not run:
## approx. 20 seconds ...
addWeights(inp) <- calibSample(inp, totalsRG)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.