sdcMicro (version 4.1.0)

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

Description

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

Usage

extractManipData(obj,ignoreKeyVars=FALSE,ignorePramVars=FALSE,ignoreNumVars=FALSE,
        ignoreStrataVar=FALSE)

Arguments

obj
object of class 'sdcMicroObj
ignoreKeyVars
If manipulated KeyVariables should be returned or the unchanged original variable
ignorePramVars
If manipulated PramVariables should be returned or the unchanged original variable
ignoreNumVars
If manipulated NumericVariables should be returned or the unchanged original variable
ignoreStrataVar
If manipulated StrataVariables should be returned or the unchanged original variable

Value

  • a data frame

Examples

Run this code
## 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)

Run the code above in your browser using DataLab