Skip to contents

Package

weird weird-package
weird: Functions and Data Sets for "That's Weird: Anomaly Detection Using R" by Rob J Hyndman

Data

Data sets included in the package

cricket_batting
Cricket batting data for international test players
n01
Multivariate standard normal data
oldfaithful
Old faithful eruption data
fetch_wine_reviews()
Wine prices and points

Functions for calculating anomaly scores

density_scores()
Density scores
glosh_scores()
GLOSH scores
lof_scores()
Local outlier factors
stray_scores()
Stray scores
lookout()
Lookout probabilities

Functions for identifying anomalies

peirce_anomalies() chauvenet_anomalies()
Anomalies according to Peirce's and Chauvenet's criteria
grubbs_anomalies() dixon_anomalies()
Statistical tests for anomalies using Grubbs' test and Dixon's test
stray_anomalies()
Stray anomalies

Functions for robust scaling of multivariate data

mvscale()
Compute robust multivariate scaled data

Functions for working with kernel density estimates

as_kde()
Convert data frame or matrix object to kde class
autoplot(<kde>)
Produce ggplot of densities in 1 or 2 dimensions
kde_bandwidth()
Robust bandwidth estimation for kernel density estimation

Functions for Graphics and HDR calculations

gg_bagplot()
Bagplot
gg_hdrboxplot()
HDR plot
hdr_palette()
Color palette designed for plotting Highest Density Regions
hdr_table()
Table of Highest Density Regions

Other Functions

weird_conflicts()
Conflicts between weird packages and other packages
weird_packages()
List all packages loaded by weird