winsorZ functionR/winsorZ_find.R
winsorZ_find.RdThe winsorZ_find function is an optional
companion to the winsorZ function.
The winsorZ function identifies Z-score outliers and
replaces with the next most extreme non-outlier value.
The winsorZ_find function finds/identifies these
Z-score outliers (outliers=1, non-outliers=0).
winsorZ_find(x, zbound = 3)
| x | The input variable to check for Z-score outliers. |
|---|---|
| zbound | The Z-score cutoff (default=3, i.e. outliers are Z>3 | Z<-3). |
Output logical variable of Z-score outliers
#> 0 1 NA's #> 4804 17 179