Description Usage Arguments Details Value Author(s) Examples
Values of a vector x are interval-censored to k-fold standard deviation around the mean.
1 | censor_feature(x, k = 4)
|
x |
data to be censored |
k |
number of standard deviations around the mean (default k = 4) |
Mean m and standard deviation s of the data x are calculated. All values of x less/greater the threshold m -/+ k * s are set to this threshold.
Censored data
Daniel Samaga
1 2 3 | x <- c(rnorm(100),10)
x <- censor_feature(x = x, k = 2)
hist(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.