corImputation imputes missing data based on the correlation that exists between row levels.
corImputation(wide, Gu=NULL, nearest=10, roundR=FALSE)
a list with the imputed matrix and the original matrix.
numeric matrix with individuals in rows and time variable in columns (e.g., environments, genetic markers, etc.).
optional correlation matrix between the individuals or row levels. If NULL it will be computed as the correlation of t(wide).
integer value describing how many nearest neighbours (the ones showing the highest correlation) should be used to average and return the imputed value.
a TRUE/FALSE statement describing if the average result should be rounded or not. This may be specifically useful for categorical data in the form of numbers (e.g., -1,0,1).
Giovanny Covarrubias-Pazaran
Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744
The core functions of the package mmer
and mmec