topBotCoding {sdcMicro} | R Documentation |
Function for Top and Bottom Coding.
topBotCoding(x, value, replacement, kind = "top")
x |
vector or one-dimensional matrix or data.frame |
value |
limit, from where it should be top- or bottom-coded |
replacement |
replacement value. |
kind |
top or bottom |
Extreme values are replaced by one value to reduce the disclosure risk.
Top or bottom coded data.
Matthias Templ
data(free1) topBotCoding(free1[,"DEBTS"], value=9000, replacement=9100, kind="top")