Introduction to DEP - data imputation
0
0
Entering edit mode
@f80289a1
Last seen 3.1 years ago
Australia

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 • 965 views
ADD COMMENT

Login before adding your answer.

Traffic: 512 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

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

Powered by the version 2.3.6