[R] bootstrapping data.frame and matrix
cp133 at york.ac.uk
Fri May 30 15:09:24 CEST 2003
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
Please note that the same is happening when I create a matrix from the
data.frame with the function cbind
 "shortrate" "y1" "y5" "y10" "y15"
Thanks in advance,
More information about the R-help