Dear all,
a question about the package boot: is it possible to bootstrap a
function of arguments of different length? is there an alternative package?
below an example of a simple try,
many thanks
paolo
library(boot)
blue<-c(4, 3, 4, 1, 2, 3, 1)
red<-c(4, 3, 4, 1, 2, 3, 1, 2, 3, 1, 3, 2)
test1<-function(x,y,d){
+ return(sum(x) - sum(y))
+ }
b=boot(red blue, test1 ,R=10)
Error: unexpected symbol in "b=boot(red blue"
--
Paolo Brunori
Ricercatore in Economia Politica
Dipartimento di Scienze Economiche
Via C. Rosalba 53, 70124 Bari
tel +39 080 504 90 51
fax +39 080 504 9149
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.