Learn R Programming

cutoffR (version 1.0)

impCV: Cross-validation for spatio-temporal imputation

Description

Cross-validation for spatio-temporal imputation

Usage

impCV(data, FUN = Cut, date.info = TRUE, cfold = 10, rfold = 10, ...)

Arguments

data
a data matrix with missing values
FUN
the imputation function to be evaluated by cross-validation
date.info
logical, if date information is provided in the data.
cfold
fold size on the columns
rfold
fold size on the rows.
...
other arguments

Value

the cross-validated RMSE

Examples

Run this code
data(hqmr.data)
# the real cross-validation will take some time to finish
# impCV(hqmr.data)

Run the code above in your browser using DataLab