| winsorZ_find | R Documentation |
winsorZ functionThe 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
summary(winsorZ_find(psydat$iq))
## Not run:
psydat %>% mutate_at(c("iq", "anxT"), list(out = ~ winsorZ_find(.)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.