Searches over a grid of interval and times values to find
the combination that yields better outlier removal than the traditional
percentile method, based on sample deletion ratio (SDR), outlier removal
ratio (ORR), and signal-to-noise ratio (SNR).
optisolu(data, cols = NULL, group = NULL, interval = 35, times = 10,
top = 0.995, top.error = 0.1, top.magnitude = 0.2,
bottom = 0.0025, bottom.error = 0.2, bottom.magnitude = 0.4,
by = "min", half = 30, date_col = NULL, cores = NULL,
verbose = FALSE)A data frame with columns: case, interval, times,
sdr, orr, snr, index, relaindex, and
optimal (logical).
A data frame containing numeric columns and optionally a grouping column.
Column indices or names of numeric variables.
Grouping column index or name.
Maximum interval value to test (from 1 to interval).
Maximum times value to test (from 1 to times).
Top percentile threshold.
Error margin for the top threshold.
Magnitude margin for the top threshold.
Bottom percentile threshold.
Error margin for the bottom threshold.
Magnitude margin for the bottom threshold.
Time unit used when computing observation deletion.
Half window size in minutes for observation deletion.
Time column index or name.
Number of CPU cores.
Logical; if TRUE, prints progress message.
Chun-Sheng Liang <[email protected]>
This function can be computationally intensive. It compares
condextr results with percoutl results.
1. Example data is from https://smear.avaa.csc.fi/download. It includes particle number concentrations in SMEAR I Varrio forest.
# \donttest{
optisolu(data[1:50, c(1, 4, 18:19)], cols = 3:4, group = 2,
interval = 2, times = 1)
# }
Run the code above in your browser using DataLab