missMDA.reuse {NADIA} | R Documentation |
missMDA.reuse
Description
The function allows the user access to missMDA imputation in the A approach.
Usage
missMDA.reuse(
train_data,
new_data,
col_type = NULL,
ncp,
random.seed = NULL,
maxiter = 998,
coeff.ridge = 1,
threshold = 1e-06,
method = "Regularized",
MFA = FALSE,
MFA_Object = NULL
)
Arguments
train_data |
data.frame used for treining. |
new_data |
data.frame. Df to impute with column names and without target column. |
col_type |
character vector. Vector containing column type names. |
ncp |
return when the training data set was imputed. |
random.seed |
Integer, by default random.seed = NULL implies that missing values are initially imputed by the mean of each variable. Other values leads to a random initialization |
maxiter |
maximal number of iteration in algortihm. |
coeff.ridge |
Value use in Regularized method. |
threshold |
threshold for convergence. |
method |
method used in imputation algoritm. |
MFA |
If TRUE MFA is used if not MCA, PCA, or FMAD algorithm. |
MFA_Object |
Object produce by missMDA_MFA required to perform MFA imputation. |
Details
Function use the same trick as in mice.reuse (new data are changed in NA in imputation stage and added back after it ). Because in missMDA is impossible to completely ignore new rows. We set their weights on 1e-300 when weights in the training set equal 1.