addWeights: Methods for function 'addWeights'

addWeights<-R Documentation

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.

Usage

addWeights(object) <- value

## S4 replacement method for signature 'dataObj'
addWeights(object) <- value

## S4 replacement method for signature 'simPopObj'
addWeights(object) <- value

Arguments

object

an object of class dataObj or simPopObj.

value

a numeric vector of suitable length

Examples

data(eusilcS)
data(totalsRG)
## Not run: 
inp <- specifyInput(data=eusilcS, hhid="db030", hhsize="hsize", strata="db040", weight="db090")
## approx. 20 seconds ...
addWeights(inp) <- calibSample(inp, totalsRG)

## End(Not run)

statistikat/simPop documentation built on March 24, 2024, 5:05 a.m.