Hi, While executing rfImpute() in order to impute missing values in the data set I receive below error : | Out-of-bag | Tree | MSE %Var(y) | 800 | 2.979e+04 1.02 | Error in prox[miss, -miss, drop = FALSE] %*% xf[, j][-miss] : requires numeric/complex matrix/vector arguments Has anyone experienced it aware of the cause? Below is the command I used to : x_tr_imp <- rfImpute(x_train[,-c(1,7)], x_train$Outlet_Sales, iter=5, 800) Regards, Sandeep S. Rana sunnysingha.analytics at gmail.com <mailto:sunnysingha.analytics at gmail.com> [[alternative HTML version deleted]]
5800 **not 5, 800** , no commas and no spaces. Please read an R tutorial or two to learn how to properly work with R if this is not merely a typo. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Feb 7, 2016 at 7:19 AM, Sandeep Rana <sunnysingha.analytics at gmail.com> wrote:> Hi, > While executing rfImpute() in order to impute missing values in the data set I receive below error : > > | Out-of-bag | > Tree | MSE %Var(y) | > 800 | 2.979e+04 1.02 | > Error in prox[miss, -miss, drop = FALSE] %*% xf[, j][-miss] : > requires numeric/complex matrix/vector arguments > > Has anyone experienced it aware of the cause? Below is the command I used to : > x_tr_imp <- rfImpute(x_train[,-c(1,7)], x_train$Outlet_Sales, iter=5, 800) > > Regards, > Sandeep S. Rana > sunnysingha.analytics at gmail.com <mailto:sunnysingha.analytics at gmail.com> > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Oh! It was a typo. ntree=800 was to be specified. Thanks Bret.> .On 07-Feb-2016, at 8:58 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > > 5800 **not 5, 800** , no commas and no spaces. > > Please read an R tutorial or two to learn how to properly work with R > if this is not merely a typo. > > -- Bert > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Sun, Feb 7, 2016 at 7:19 AM, Sandeep Rana > <sunnysingha.analytics at gmail.com> wrote: >> Hi, >> While executing rfImpute() in order to impute missing values in the data set I receive below error : >> >> | Out-of-bag | >> Tree | MSE %Var(y) | >> 800 | 2.979e+04 1.02 | >> Error in prox[miss, -miss, drop = FALSE] %*% xf[, j][-miss] : >> requires numeric/complex matrix/vector arguments >> >> Has anyone experienced it aware of the cause? Below is the command I used to : >> x_tr_imp <- rfImpute(x_train[,-c(1,7)], x_train$Outlet_Sales, iter=5, 800) >> >> Regards, >> Sandeep S. Rana >> sunnysingha.analytics at gmail.com <mailto:sunnysingha.analytics at gmail.com> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code.