Learn R Programming

imputeTestbench (version 2.0.2)

impute_errors: Function working as testbench for comparison of imputing models

Description

Function working as testbench for comparison of imputing models

Usage

impute_errors(dataIn, missPercentFrom, missPercentTo, interval, repetition, errorParameter, MethodPath, MethodName, random, startPoint, patchLength)

Arguments

dataIn
as input data for testing
missPercentFrom
as variable from which percent of missing values to be considered
missPercentTo
as variable to state upto what percent missing values are to be considered
interval
as interval between consecutive missPercent values
repetition
as an integer to decide the numbers of repetition to be done for each missPercent value
errorParameter
as type of error calculation (RMSE, MAE or MAPE)
MethodPath
as location of function for the proposed imputation method
MethodName
as name for function for the proposed imputation method
random
as parameter to decide missing value scheme
startPoint
as index of missing patches in dataset when 'random = 0'
patchLength
as length of missing patches in dataset when 'random = 0'

Value

Returns error comparison for imputation methods

Examples

Run this code
# aa <- impute_errors()
# aa

# bb <- impute_errors(random = 0, startPoint = c(10, 20, 40), patchLength = c(3, 4, 5))
# bb

Run the code above in your browser using DataLab