Description Usage Arguments Value Author(s) See Also Examples
This function adjusts the size of values in a numeric vector once value go beyond a certain threshold. The adjustment is done by an exponential function with the default exponent 0.7. In the context of business tendency surveys this function is often used to lower the influence of very large companies when employment based weighting is used.
1 | capWeight(weight, threshold = 500, exponent = 0.7)
|
weight |
input numeric vector |
threshold |
input numeric giving the threshold beyond which exp function should be applied |
exponent |
input numeric giving the exponent, typically below one as influence of big weights should be declined |
numeric vector of capped weights
Matthias Bannert
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.