Re: [R] aregImpute in Hmisc

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Thu 21 Jul 2005 - 11:09:29 EST

Young Cho wrote:
> Hi,
>
> I have a dataframe ds1.2 - 503 categorial variables
> and 1 continuous response variables. I ran aregImpute
> to deal with NA's and got the followig error:
>
>

>>fmla = terms( Response ~ . ,data=ds1.2)
>>ds.i = aregImpute(fmla,data=ds1.2)

>
> Error in matrix(as.double(1), nrow = n, ncol = p,
> dimnames = list(rnam, :
> length of dimnames [2] not equal to array
> extent
>
> Could you explain what I should do? Thanks a lot.
>
> Young.

Without a small reproducible example (using for example simulated data) I can't solve it. You may have trouble using aregImpute with that many variables. -Frank Harrell

>
> ______________________________________________
> R-help@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
>

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
R-help@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
Received on Thu Jul 21 11:13:08 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:53 EST