View source: R/dimarEvaluatePerformance.R
dimarEvaluatePerformance | R Documentation |
Evaluates performance of imputation algorithms.
dimarEvaluatePerformance(
Imputations,
ref,
sim,
rankby = "RMSE",
RMSEttest = TRUE,
group = "cluster"
)
Imputations |
Imputed data set(s) |
ref |
Reference data |
sim |
Simulated patterns of MVs |
rankby |
Performance measure which should serve as rank criterion |
RMSEttest |
flag if RMSE of ttest should be calculated |
group |
indices for ttest |
Data frame containing the following performance measures for each imputation method: Deviation, RMSE, RSR, p-Value_F-test, Accuracy, PCC, and in case of RMSEttest=TRUE the RMSE t-test result
mtx <- matrix(rnorm(1000),nrow=100)
mtx[sample(c(1:1000),100)] <- NA
coef <- dimarLearnPattern(mtx)
ref <- dimarConstructReferenceData(mtx)
sim <- dimarAssignPattern(ref, coef, mtx)
Imputations <- dimarDoImputations(sim, c('impSeqRob', 'ppca', 'imputePCA'))
Performance <- dimarEvaluatePerformance(Imputations, ref, sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.