[R] Hmisc multiple imputation functions
Frank E Harrell Jr
fharrell at virginia.edu
Tue Jun 17 02:04:57 CEST 2003
On Mon, 16 Jun 2003 13:22:08 +0000
Vumani Dlamini <dvumani at hotmail.com> wrote:
> Dear all;
>
> I am trying to use HMISC imputation function to perform multiple imputations
> on my data and I keep on getting errors for the code given in the help
> files.
You did not specify the version of Hmisc nor the output of the version command to provide the OS and version of R.
>
> When using "aregImpute" the error is;
>
> >f <- aregImpute(~y + x1 + x2 + x3, n.impute=100)
> Loading required package: acepack
> Iteration:1 Error in .Fortran("wclosepw", as.double(w), as.double(x),
> as.double(runif(lw)), :
> C/Fortran function name not in load table
Please see above. If you are running under Windows, perhaps the wclosepw routine was omitted from the Windows distribution of Hmisc.
>
> When I use "transcan" it is;
>
> >f <- transcan(~y + x1 + x2, n.impute=10, shrink=FALSE)
> Error in transcan(~y + x1 + x2, n.impute = 10, shrink = FALSE) :
> Must specify data= when using R
That is an error in the documentation which I just fixed. Add
d <- data.frame(y,x1,x2)
f <- transcan(~y+x1+x2, ......., data=d)
Frank
>
> I am not sure what I am missing.
>
> Vumani
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
---
Frank E Harrell Jr Prof. of Biostatistics & Statistics
Div. of Biostatistics & Epidem. Dept. of Health Evaluation Sciences
U. Virginia School of Medicine http://hesweb1.med.virginia.edu/biostat
More information about the R-help
mailing list