Yichun,
1. You are doing this wrong!
2. It is the wrong thing to do!
In more detail:
1. To use boot, it helps to read the help file which clearly says the
statistic must be a function of two arguments, the original dataset and
the indices saying which of the original datapoints are in the boot
Perhaps it should be mentioned that resampling does not produce a
correct CI for extreme quantiles, so the whole exercise may be
pointless.
Cheers,
Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowledge
is certain
Run the examples in the ?boot help page. Notice that boot needs a function that
accepts a dataframe and an index vector.
Sent from my iPhone
> On May 21, 2014, at 1:49 AM, 张以春 wrote:
>
> Dear friends,
>
>
> I have a numeric vector composed of 320 numbers.
>
>
> Now, I want to do resample
Dear friends,
I have a numeric vector composed of 320 numbers.
Now, I want to do resample for 1 times. I want to get maxium number for
every trial and get a 1 maxium numbers.
I have tried to use "boot" package such as follows.
results<-boot(data=nearshore1,statistic=max,R=1,st
4 matches
Mail list logo