set.sdcMicroObj {sdcMicro} | R Documentation |
set.sdcMicroObj
Description
modify sdcMicroObj-class
-objects depending on argument type
Usage
set.sdcMicroObj(object, type, input)
Arguments
object |
a |
type |
a character vector of length 1 defining what to calculate|return|modify. Allowed types are listed below
and the slot with the corresponding name will be replaced by the content of
|
input |
a list depending on argument |
Value
a sdcMicroObj-class
-object
Examples
sdc <- createSdcObj(testdata2,
keyVars=c('urbrur','roof','walls','water','electcon','relat','sex'),
numVars=c('expend','income','savings'), w='sampling_weight')
ind_pram <- match(c("sex"), colnames(testdata2))
get.sdcMicroObj(sdc, type="pramVars")
sdc <- set.sdcMicroObj(sdc, type="pramVars", input=list(ind_pram))
get.sdcMicroObj(sdc, type="pramVars")
[Package sdcMicro version 5.7.8 Index]