Message-ID: <3ED75804.972E40BE@york.ac.uk>
Date: 2003-05-30T13:09:24Z
From: cp133
Subject: bootstrapping data.frame and matrix
Dear All,
When bootstrapping a statistics based on more than one vector, from a
data.frame or a matrix object, it looks like I am not able to pass the
data to R. What am I doing wrong?
I use the library "bootstrap".
Here is an example with a data.frame called "data"
"boot2_bootstrap(data, theta, nboot)
I get the following error message:
Error in inherits(x, "data.frame") : Argument "xdata" is missing, with
no default"
Please note that the same is happening when I create a matrix from the
data.frame with the function cbind
(i.e.
names(data)
[1] "shortrate" "y1" "y5" "y10" "y15"
"y20"
[7] "y25"
xdata_cbind(data$y10,data$shortrate)
is.matrix(x.data)
TRUE)
Thanks in advance,
Chiara