ksFUN: Running Kolmogorov-Smirnov (KS) Two-Sample Test.

Description Usage Arguments Examples

Description

This function gives the running KS test for an observation, relative to a proxy from some other observation/s.

Usage

1
2
ksFUN(x, obs, date, proxy, all.data = TRUE, theta = NA, tau = NA,
  window.length = 72)

Arguments

obs

The data under investigation.

date

A required column with the format 'YYYY-MM-DD HH:MM:SS'.

proxy

The comparison data.

all.data

This decides whether to use all provided data (all.data - 'TRUE'), or to run the function on live data ('FALSE'), which makes the function possible to run as a schedule for real-time updating. Defaults is 'TRUE'.

theta

This sets the test threshold on whether to flag the data. Defaults to 'NA' (no flags given).

tau

This sets the day threshold on whether to flag the data given consistent theta flags. Defaults to 'NA' (no flags given).

window.length

This defines the length of the sampled window, defined by row number. Default is 72 (three days of hourly data).

Examples

1

gmiskell/sensor_toolkit documentation built on May 17, 2019, 7:06 p.m.