Hello: I have been trying to impute missing values of a data frame which has both numerical and categorical values using the function transcan() with little luck. Would you be able to give me a simple example where a data frame is fed to transcan and it spits out a new data frame with the NA values filled up? Or is there any other function that i could use? Thank you avneet ====I believe in equality for everyone, except reporters and photographers. ~Mahatma Gandhi
Frank E Harrell Jr
2005-Jan-12 13:20 UTC
[R] transcan() from Hmisc package for imputing data
avneet singh wrote:> Hello: > > I have been trying to impute missing values of a data > frame which has both numerical and categorical values > using the function transcan() with little luck. > > Would you be able to give me a simple example where a > data frame is fed to transcan and it spits out a new > data frame with the NA values filled up? > > Or is there any other function that i could use? > > Thank you > avneetIt's in the help file for transcan. But multiple imputation is much better, and transcan does not do multiple imputation as well as the newer Hmisc function aregImpute. -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University