Displaying 2 results from an estimated 2 matches for "dailydataraw_01".
2008 Nov 26
1
multiple imputation with fit.mult.impute in Hmisc - how to replace NA with imputed value?
...e imputation with Hmisc, and
can't figure out how to replace the NA values with
the imputed values.
Here's a general ourline of the process:
> set.seed(23)
> library("mice")
> library("Hmisc")
> library("Design")
> d <- read.table("DailyDataRaw_01.txt",header=T)
> length(d);length(d[,1])
[1] 43
[1] 2666
Do for this data set, there are 43 columns and 2666 rows
Here is a piece of data.frame d:
> d[1:20,4:6]
P01 P02 P03
1 0.1 0.16 0.16
2 NA 0.00 0.00
3 NA 0.60 0.04
4 NA 0.15 0.00
5 NA 0.00 0.00
6 0.7 0.00 0.75
7 NA...
2009 Mar 09
5
Help
...> the imputed values.
> >
> > Here's a general ourline of the process:
> >
> > > set.seed(23)
> > > library("mice")
> > > library("Hmisc")
> > > library("Design")
> > > d <- read.table("DailyDataRaw_01.txt",header=T)
> > > length(d);length(d[,1])
> > [1] 43
> > [1] 2666
> > Do for this data set, there are 43 columns and 2666 rows
> >
> > Here is a piece of data.frame d:
> > > d[1:20,4:6]
> > P01 P02 P03
> > 1 0.1 0.16 0.16
>...