Introduction to DEP - data imputation
Entering edit mode
Last seen 5 weeks ago

Hi there,

I am trying to use the DEP package and want to impute my data so that invalid values become 1. Is there an option to impute NA values to a constant (say 1)?

I typed impute(data_norm, fun = "") and it gives a message saying

Error in match.arg(fun): 'arg' should be one of "bpca", "knn", "QRILC", "MLE", "MinDet", "MinProb", "man", "min", "zero", "mixed", "nbavg"


But there doesn't seem to be any information on what these 'arg' are and how to use them in the code, apart from the 3 examples given.

If I can't make invalid values 1, how do I make them zero? I tried data_imp <- impute(data_norm, fun = "zero") and no error or warning message came up but when I continued with the next script there was an error message saying that my data had missing values.

DEP impute • 56 views

Login before adding your answer.

Traffic: 333 users visited in the last hour
Help About
Access RSS

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6