cutoffR (version 1.0)

Cut: The simple version of CUTOFF

Description

The simple version of CUTOFF

Usage

Cut(data, cutoff = 0.75, method = "pearson", ID = FALSE, ...)

Arguments

data
a data matrix with missing values
cutoff
the cutoff value for the CUTOFF method
method
CUTOFF method to be used.
ID
If the reference information needs to be retained during the imputation if TRUE, then reference information can be retained from the returned list by calling ID. If FALSE, then no reference information will be retained.
...
other arguments

Value

If ID = FALSE, then return the imputed data matrix with no missing values. If ID = TRUE, then return a list of two components:
imputed
The imputed data matrix with no missing values
ID
The reference information during the imputation

References

Lingbing Feng, Gen Nowak, Alan. H. Welsh and Terry. J. O'Neill (2014): CUTOFF: A Spatio-temporal Imputation Method, Journal of Hydrology. (submitted)

Examples

Run this code
data(hqmr.data)
#' # check the number of missing values
nmissing(hqmr.data[, -79])
# impute the data by the CUTOFF method
impdata <- Cut(data = hqmr.data)
nmissing(impdata)

Run the code above in your browser using DataCamp Workspace