ChooseMethod {ADImpute} | R Documentation

## Method choice per gene

### Description

`ChooseMethod` determines the method for dropout imputation based on performance on each gene in training data

### Usage

    ChooseMethod(real, masked, imputed, write.to.file = TRUE)

### Arguments

`real` | matrix; original gene expression data, i.e. before masking (genes as rows and samples as columns)
`masked` | matrix, logical indicating which entries were masked (genes as rows and samples as columns)
`imputed` | list; list of matrices with imputation results for all considered methods
`write.to.file` | logical; should the output be written to a file?

### Details

The imputed values are compared to the real ones for every masked entry in `real`. The Mean Squared Error is computed for all masked entries per gene and the method with the best performance is chosen for each gene.

### Value

character; best performing method in the training set for each gene

### See Also

`ComputeMSEGenewise`

[Package ADImpute version 1.0.0 Index]