Hi,
I'm relatively new to R and it'll be great if someone can help me with
what
I'm doing here.
I am trying to do multiple imputation on my dataset, but I'm not quite sure
which function to use as my dataset contains dichotomous variables.
Here's an outline of what i've done so far, and i'm not sure if
i'm doing it
right, and where to go from here. It'll be great if someone can help.
> library(mice)
> library(hmisc)
> length(asp);length(asp[,1])
[1] 2
[1] 15060
> asp[1:20,]
cc Aspirin
1 0 NA
2 0 NA
3 0 0
4 0 0
5 0 0
6 1 NA
7 1 NA
8 0 1
9 0 0
10 0 0
11 0 NA
12 0 0
13 0 NA
14 0 0
15 0 0
16 0 1
17 0 0
18 0 0
19 0 0
20 0 NA
I tried calling the function mice.impute.logreg and mi.dichotomous - both
giving me errors in return. I'm quite sure I'm doing it incorrectly, so,
I
would really appreciate it if someone can show me how.
Thanks in advance! :)
Cheers,Yen
[[alternative HTML version deleted]]