cap: Exponentional Cap for Large Values in a Vector

Description Usage Arguments Author(s)

Description

This function is often used in surveys to cap large weights caused by employment weighting.

Usage

1
  cap(n, threshold = 500, exponent = 0.7)

Arguments

n

vector to be capped

threshold

scalar at which the cap should come into play, defaults to 500.

exponent

an exponent typically below 1.

Author(s)

Matthias Banenrt


mbannert/gateveys2 documentation built on May 21, 2019, 2:23 p.m.