classification_error: Classification error calculator.

Description Usage Arguments Value Examples

View source: R/classification_error_function.R

Description

Classification error calculator.

Usage

1
classification_error(df1, df2, NA_positions)

Arguments

df1

The original dataset that contains only true missing values, not introduced missing values.

df2

The second dataset that has all missing values filled in.

NA_positions

The positions where we introduced NA in the original dataset.

Value

number of incorrectly classified individuals / total number of individuals

Examples

1
2
3
4
5
data("SNP_orig_sub")
data("SNP_NA_df02")
df_fill <- Impute_GenoType_XGBoost(SNP_NA_df02$SNP_NA_df)
NA_positions <- SNP_NA_df02$NP_generate_positions
classification_error(SNP_orig_sub, df_fill, NA_positions)

GaoGN517/689_SNP_FastImpute documentation built on Jan. 2, 2020, 11:44 a.m.