Hi Alfredo, Short answer is no. As en example, consider the following:
# example require(boot) x <- c(4, 4, 4, 3, 2, 4, 4, 3, 6, 2) res <- boot(x, function(v, index) mean(v[index]), R = 1000) res str(res) More information can be found under ?boot (after loaging the boot package) as well as in [1] and [2]. Best, Jorge [1] http://www.ats.ucla.edu/stat/r/library/bootstrap.htm [2] http://www.statmethods.net/advstats/bootstrapping.html * * On Wed, Sep 22, 2010 at 12:24 PM, alfredo <> wrote: > > Hi There, > > Just a question regarding the function that is specified to boot (I have > read the help, the manual and online examples.........). The description of > boot says that the second argument of "statistic" (non parametric > bootstrap) > must be a vector of indices, frequencies or weights which define the > bootstrap sample. If what I will be bootstrapping is e.g., the mean of a > vector of length N and I want each observation in the vector to be given > equal weight, should the second argument be a vector containing "N" 1's? > > Thanks beforehand for your help. > > Best, > > A > -- > View this message in context: > http://r.789695.n4.nabble.com/statistic-term-in-boot-function-tp2550629p2550629.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.