Learn R Programming

UAHDataScienceO (version 1.0.0)

z_score_method: z_score_method

Description

This function implements the outlier detection algorithm using standard deviation and mean

Usage

z_score_method(data, d, learn)

Value

Numeric vector containing the indices of detected outliers.

Arguments

data

Input Data that will be processed with or without the tutorial mode activated

d

Degree of outlier or distance at which an event is considered an outlier

learn

if TRUE the tutorial mode is activated (the algorithm will include an explanation detailing the theory behind the outlier detection algorithm and a step by step explanation of how is the data processed to obtain the outliers following the theory mentioned earlier)

Author

Andres Missiego Manjon

Examples

Run this code
inputData = t(matrix(c(3,2,3.5,12,4.7,4.1,5.2,
4.9,7.1,6.1,6.2,5.2,14,5.3),2,7,dimnames=list(c("r","d"))))
inputData = data.frame(inputData)
z_score_method(inputData,2,FALSE) #Can be changed to TRUE

Run the code above in your browser using DataLab