Description Usage Arguments Value Examples
This function calculates for evaluation metrics between matrix with no missigness and matrix with imputed values. Four metrics will be returned: root mean square error, mean absolute error, coeficient of variation of root mean square error and mean absolute percentage error for each column in the matrices.
1 | evaluate_imputation(original_matrix, imputed_matrix)
|
original_matrix |
Original matrix |
imputed_matrix |
Matrix for which missigness has been for example artificially created and then imputed |
matrix containing rmse, mae, rmse_cv and mape for each column
1 2 3 4 | mat = as.matrix(iris[,1:4])
mis_mat = generate_na(mat , 0.3)
imp_mat = impute_xgboost(mis_mat)
evaluate_imputation(mat, imp_mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.