A simple question about bootstrap in R
- From: "Seeker" <zhongming@xxxxxxxxx>
- Date: 20 Oct 2005 22:20:03 -0700
Hi,
I am using bootstrap package in R library but got confused about the
syntax.
Here is the short sample code:
library(boot)
ratio <- function(d, w)
sum(d$x * w)/sum(d$u * w)
boot(city, ratio, R=999, stype="w")
My question is how the arguments are passed to the function "ratio". I
can vaguely see that "city" is passed as "d" but where is "w"?
Thanks for your help!
.
- Follow-Ups:
- Re: A simple question about bootstrap in R
- From: Marc Schwartz
- Re: A simple question about bootstrap in R
- Prev by Date: Re: Combination
- Next by Date: Definition of an increasing functional on a set of probabiliy distributions
- Previous by thread: Compact metric Spaces of PPOs
- Next by thread: Re: A simple question about bootstrap in R
- Index(es):