mists-polish-auto: Automate missing data polishing for tsibble

Description Usage Arguments See Also Examples

Description

It is an iterative process for minimising the loss until a tolerance value.

Usage

1
2
3
4
5
na_polish_auto(data, cutoff, tol = 0.1, funs = na_polish_funs(),
  quiet = FALSE)

na_polish_autotrace(data, cutoff, tol = 0.1, funs = na_polish_funs(),
  quiet = FALSE)

Arguments

data

A tsibble.

cutoff

Numerics of length 1 or length of funs between 0 and 1.

tol

A tolerance value close or equal to zero as stopping rule. It compares to the loss defined as (1 - prop_na) * prop_removed to be minimised. See na_polish_metrics() for details.

funs

A list of na_polish_*() functions to go through. By default, na_polish_funs() contains "measures", "key", "index", and "index2".

quiet

If FALSE, report metrics at each step and pass of the polishing process. It requires the "cliapp" package to be installed.

See Also

Other missing value polishing functions: na_polish_measures, na_polish_metrics

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
wdi_ts <- tsibble::as_tsibble(wdi, key = country_code, index = year)
wdi_after <- na_polish_auto(wdi_ts, cutoff = .8)
na_polish_metrics(wdi_ts, wdi_after)

# Trace down `na_polish_auto()`
na_polish_autotrace(wdi_ts, cutoff = .8, quiet = TRUE)

## End(Not run)

earowang/mists documentation built on Sept. 21, 2019, 1:12 p.m.