dss_impute_missing: A wrapper for missing data imputation prior to sex...

View source: R/dss_impute_missing.R

dss_impute_missingR Documentation

A wrapper for missing data imputation prior to sex estimation.

Description

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.

Usage

dss_impute_missing(dtf, method = "missMDA")

Arguments

dtf

dataframe of reference individuals, typically as returned by dss_check_data.

method

character string, either "missMDA" or "missForest". Uses the corresponding R package to perform missing data imputation.

Details

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.

Value

a dataframe, which is the imputed version of the input dataframe dtf.

Author(s)

Frédéric Santos.

See Also

imputePCA, missForest


frederic-santos/rdss documentation built on March 25, 2023, 5:25 p.m.