Displaying 1 result from an estimated 1 matches for "immig".
2004 Dec 16
1
help with multiple imputation using imp.mix
...nnot find the solution. It's
the first time I am using mix and I'm trying really hard to understand, but
there's just this one step I don't get...perhaps someone knows the answer?
Thanks!
Jens
My code runs:
data<-read.table('http://www.courses.fas.harvard.edu/~gov2001/Data/immigrati
on.dat',header=TRUE)
library(mix)
rngseed(12345678)
# Preare data for imputation
gender1<-c()
gender1<-as.integer(data$gender)
gender1[gender1==1]<-2
gender1[gender1==0]<-1
data$gender<-gender1
x<-cbind(data$gender,data$ipip,data$ideol,data$prtyid, data$wage1992)
colna...