[R] bootstrap question
Erin Hodgess
hodgess at uhddx01.dt.uh.edu
Thu Jun 12 23:21:34 CEST 2003
Dear r People
I have a bootstrap question, please.
(this may possibly be a problem with my understanding of the bootstrap)
Suppose I have a sample of size 15, x[1], ...x[15].
This is a sample which is small compared to the population.
by the way, the x[i] are iid and have a common distribution F.
As I understand the bootstrap, that function will take a user specified
number of repititions. In each repitition, each element x[i] has an
equal chance of selection.
Suppose I want to estimate the mean.
In each rep, a new sample is generated. the mean is calculated in each rep.
I would like to see those means.
If I use the boot command,
boot(x,mean,R=40)$t
I thought that I would obtain 40 different values. However, those $t values
are all the same.
what am I doing wrong, please?
thanks yet again!
sincerely,
Erin Hodgess
mailto: hodgess at uhddx01.dt.uh.edu
More information about the R-help
mailing list