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
fr_mortality
French mortality rates by age and sex

Functions for calculating anomaly scores

glosh_scores()
GLOSH scores
lof_scores()
Local outlier factors
stray_scores()
Stray scores
surprisals()
Surprisals
surprisals(<lm>) surprisals(<gam>)
Surprisals computed from a model
lookout_prob()
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
hampel_anomalies()
Identify anomalies using the Hampel filter

Functions for robust scaling of multivariate data

mvscale()
Compute robust multivariate scaled data

Functions for working with kernel density estimates

dist_kde()
Create distributional object based on a kernel density estimate
kde_bandwidth()
Robust bandwidth estimation for kernel density estimation

Functions for distributions

dist_density()
Create distributional object based on a specified density
hdr_table()
Table of Highest Density Regions

Functions for producing plots

gg_density()
Produce ggplot of densities from distributional objects in 1 or 2 dimensions
gg_density_layer()
Add ggplot layer of densities from distributional objects in 1 dimension
gg_bagplot()
Bagplot
gg_hdrboxplot()
HDR plot

Other Functions

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