[R] pb with package mix

Jan Goebel jgoebel at diw.de
Fri Feb 11 15:51:14 CET 2005


Hi,

i guess that prelim.mix needs a matrix rather than a data frame.

best

jan

On Fri, 11 Feb 2005, Stephanie.Tomczak at eleves.polytech-lille.fr wrote:

> hello,
> 
> We've got a problem with the mix package in order to impute the missing data.
> After importing the data, the prelim function does not work (only the stlouis
> data works).
> 
> We have done :
> 
> >library(mix)
> >Manq <- read.table("C:/.../file.txt")
> >attach(Manq)
> >save(Manq,file="C:/../R/rw2001/library/mix/data/Manq.rda")
> >data(Manq)
> >Manq
>  V1 V2 V3 V4
> 1  1  1  1  1
> 2  1  1  3  6
> 3  1  2  6  2
> ...
> ...
> 52  2  7  6  2
> 
> >Essaimanq <-prelim.mix(Manq,4)
>   Error in as.integer.default(list(V1 = c(1, 1,  1,  1,  1,  1, 1,  1,  1,  1,:
>      (list) object cannot be coerced to integer   
> 
> thank you
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

-- 
+-----------------------------------------
 Jan Goebel 
 j g o e b e l @ d i w . d e

 DIW Berlin 
 German Socio-Economic Panel Study (GSOEP) 
 Königin-Luise-Str. 5
 D-14195 Berlin -- Germany --
 phone: 49 30 89789-377
+-----------------------------------------




More information about the R-help mailing list