Skip to content
Prev 75482 / 398502 Next

boot error: Error in statistic(data, original, ...) : unused argument(s) ( ...)

Please look at the examples and the book which package boot supports (see 
its DESCRIPTION file).  From ?boot

statistic: A function which when applied to data returns a vector
           containing the statistic(s) of interest.  When
           'sim="parametric"', the first argument to 'statistic' must be
           the data.  For each replicate a simulated dataset returned by
           'ran.gen' will be passed.  In all other cases 'statistic'
           must take at least two arguments.
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and yours only takes one argument, hence the error message.

I suspect you want

AdjForBase2 <- function (data, inds)

and to refer to data[inds, 1] and data[inds, 2], but since your code is 
completely devoid of spaces and indentation, I have paid it little 
attention.
On Fri, 12 Aug 2005, John Sorkin wrote: