topBotCoding {sdcMicro}R Documentation

Top and Bottom Coding

Description

Function for Top and Bottom Coding.

Usage

topBotCoding(x, value, replacement, kind = "top")

Arguments

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

Details

Extreme values are replaced by one value to reduce the disclosure risk.

Value

Top or bottom coded data.

Author(s)

Matthias Templ

See Also

indivRisk

Examples

data(free1)
topBotCoding(free1[,"DEBTS"], value=9000, replacement=9100, kind="top")

[Package sdcMicro version 2.5.8 Index]