[R] Fwd: Error Message when using VarSelection in YaiImpute package with the randomForest
andrew haywood
ahaywood3 at gmail.com
Sat Oct 10 19:27:03 CEST 2015
Dear All,
as I new to the R-help list. I didnt realise I should provide the following
information
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=ms_MY.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=ms_MY.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=ms_MY.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=ms_MY.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] yaImpute_1.0-26 strucchange_1.5-1 sandwich_2.3-4 zoo_1.7-12
[5] segmented_0.5-1.2
loaded via a namespace (and not attached):
[1] grid_3.0.2 lattice_0.20-33 randomForest_4.6-12
[4] tools_3.0.2
Running traceback() I get the following
> traceback()
10: yai(x = xa, y = y, method = yaiMethod, bootstrap = bootstrap,
...)
9: withCallingHandlers(expr, warning = function(w)
invokeRestart("muffleWarning"))
8: suppressWarnings(yai(x = xa, y = y, method = yaiMethod, bootstrap =
bootstrap,
...))
7: grmsd(one = suppressWarnings(yai(x = xa, y = y, method = yaiMethod,
bootstrap = bootstrap, ...)), ancillaryData = y, wts = wts)
6: withCallingHandlers(expr, warning = function(w)
invokeRestart("muffleWarning"))
5: suppressWarnings(grmsd(one = suppressWarnings(yai(x = xa, y = y,
method = yaiMethod, bootstrap = bootstrap, ...)), ancillaryData = y,
wts = wts))
4: FUN(1:5[[1L]], ...)
3: myapply(1:max(1, nboot), function(i, xa, y, wts, yaiMethod, bootstrap,
...) suppressWarnings(grmsd(one = suppressWarnings(yai(x = xa,
y = y, method = yaiMethod, bootstrap = bootstrap, ...)),
ancillaryData = y, wts = wts)), xa, y, wts, yaiMethod, bootstrap,
...)
2: unlist(myapply(1:max(1, nboot), function(i, xa, y, wts, yaiMethod,
bootstrap, ...) suppressWarnings(grmsd(one = suppressWarnings(yai(x
= xa,
y = y, method = yaiMethod, bootstrap = bootstrap, ...)),
ancillaryData = y, wts = wts)), xa, y, wts, yaiMethod, bootstrap,
...))
1: varSelection(x = x, y = y, nboot = 5, yaiMethod = "randomForest",
useParallel = FALSE)
Any help/guidance would be greatly appreciated.
Kind regards
Andrew
---------- Forwarded message ----------
From: andrew haywood <ahaywood3 at gmail.com>
Date: Thu, Sep 17, 2015 at 1:57 AM
Subject: Error Message when using VarSelection in YaiImpute package with
the randomForest
To: r-help at r-project.org
Dear All,
when using the following code
x <- iris[,1:2] # Sepal.Length Sepal.Width
y <- iris[,3:4] # Petal.Length Petal.Width
vsel <-
varSelection(x=x,y=y,nboot=5,yaiMethod="randomForest",useParallel=FALSE)
I get the following error code
Error in yai(x = xa, y = y, method = yaiMethod, bootstrap = bootstrap, :
object 'xcvRefs' not found
If anybody could tell me what I am doing wrong.
Cheers
Andrew
[[alternative HTML version deleted]]
More information about the R-help
mailing list