setLevels_cpp {sdcMicro} | R Documentation |
Define Swap-Levels
Description
Define hierarchy levels over which record needs to be swapped according to risk variables.
NOTE: This is an internal function used for testing the C++-function setLevels()
which is applied inside recordSwap()
.
Usage
setLevels_cpp(risk, risk_threshold)
Arguments
risk |
vector of vectors containing risks of each individual in each hierarchy level. |
risk_threshold |
double defining the risk threshold beyond which a record/household needs to be swapped. This is understood as risk>=risk_threshhold. |
Value
Integer vector with hierarchy level over which record needs to be swapped with.
[Package sdcMicro version 5.7.8 Index]