Remove certain variables from the data set inside a sdc object.

Description

Extract the manipulated data from an object of class sdcMicroObj-class

Usage

1
2
extractManipData(obj, ignoreKeyVars = FALSE, ignorePramVars = FALSE,
  ignoreNumVars = FALSE, ignoreGhostVars = FALSE, ignoreStrataVar = FALSE)

Arguments

obj

object of class sdcMicroObj-class

ignoreKeyVars

If manipulated KeyVariables should be returned or the unchanged original variables

ignorePramVars

If manipulated PramVariables should be returned or the unchanged original variables

ignoreNumVars

If manipulated NumericVariables should be returned or the unchanged original variables

ignoreGhostVars

If manipulated Ghost (linked) Variables should be returned or the unchanged original variables

ignoreStrataVar

If manipulated StrataVariables should be returned or the unchanged original variables

Value

a data frame

Methods

list("signature(obj = \"sdcMicroObj\")")

Author(s)

Alexander Kowarik, Bernhard Meindl

Examples

1
2
3
4
5
6
7
## for objects of class sdcMicro:
data(testdata2)
sdc <- createSdcObj(testdata,
  keyVars=c('urbrur','roof'),
  numVars=c('expend','income','savings'), w='sampling_weight')
sdc <- removeDirectID(sdc, var="age")
dataM <- extractManipData(sdc)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.