search for: bootresult

Displaying 3 results from an estimated 3 matches for "bootresult".

Did you mean: bootresults
2006 Apr 20
1
Bootstrap error message: Error in statistic(data, origina l, ...) : unused argument(s) ( ...)
..." with a second argument, but "myFun" doesn't know what to do with a second argument, and that's where you get the error. Andy > What's wrong with my bootstraping code? > > Thanks a lot! > > ------------------------ > Error Message: > > > bootResults=boot(X, myFun, R=10000); > Error in statistic(data, original, ...) : unused argument(s) ( ...) > > ------------------------ > My code is: > > X=cbind(column_vector_1, column_vector_2); > myFun=function(X) > { > return(mean(X[, 1])/var(X[, 2])); > } > > b...
2006 Apr 20
1
Bootstrap error message: Error in statistic(data, origina l, ...) : unused argument(s) ( ...) [Broadcast]
...Andy, I've noticed there should be a "weight" or "frequency" somewhere... but my function does not need it. I have tried to cheat it by declareing a weight, but not using it: > myFun=function(X, w) > { > return(mean(X[, 1])/var(X[, 2])); > } > > bootResults=boot(X, myFun, R=10000, stype='w'); The result is zero: Bootstrap Statistics : original bias std. error t1* 2.305412 0 0 On 4/20/06, Liaw, Andy < andy_liaw@merck.com <mailto:andy_liaw@merck.com> > wrote: > -----Original Message----- > From...
2006 Apr 20
0
Bootstrap error message: Error in statistic(data, original, ...) : unused argument(s) ( ...)
Dear colleagues, I've been swamped and fighting with error for a few hours but still desperately having absolutely no clue: What's wrong with my bootstraping code? Thanks a lot! ------------------------ Error Message: > bootResults=boot(X, myFun, R=10000); Error in statistic(data, original, ...) : unused argument(s) ( ...) ------------------------ My code is: X=cbind(column_vector_1, column_vector_2); myFun=function(X) { return(mean(X[, 1])/var(X[, 2])); } bootResults=boot(X, myFun, R=10000); ---------------------...