View source: R/dss_impute_missing.R
dss_impute_missing | R Documentation |
This function allows for the imputation of missing values of the reference dataset, before performing secondary sex estimation. Two modern and efficient algorithms of missing imputation are proposed.
dss_impute_missing(dtf, method = "missMDA")
dtf |
dataframe of reference individuals, typically as returned by
|
method |
character string, either "missMDA" or "missForest". Uses the corresponding R package to perform missing data imputation. |
If method = "missMDA"
, the function
imputePCA
from package 'missMDA' is used for
missing data imputation. If method = "missForest"
, the
function missForest
from package
'missForest' is used. See their respective documentation for more
theoretical and practical details.
a dataframe, which is the imputed version of the input dataframe
dtf
.
Frédéric Santos.
imputePCA
, missForest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.