Description Usage Arguments Value Author(s) Examples
pairs.boot
is used to bootstrap a statistic which operates on
two samples and returns a single value. An example of such a
statistic is the correlation coefficient (i.e. cor
).
Resampling is done pairwise, so x
and y
must have the
same length (and be ordered correctly). One can alternatively pass a
two-column matrix to x
.
1 |
x |
Either a vector of numbers representing the first sample or a two column matrix containing both samples. |
y |
If NULL it is assumed that |
FUN |
The statistic to bootstrap. If |
R |
The number of bootstrap replicates. |
student |
Should we do a studentized bootstrap? This requires a double bootstrap so it might take longer. |
M |
If |
weights |
Resampling weights. |
... |
Other (named) arguments that should be passed to |
An object of class "simpleboot"
, which is almost identical to the
regular "boot"
object. For example, the boot.ci
function can be used on this object.
Roger D. Peng
1 2 3 4 5 6 |
Simple Bootstrap Routines (1.1-7)
BOOTSTRAP CONFIDENCE INTERVAL CALCULATIONS
Based on 100 bootstrap replicates
CALL :
boot.ci(boot.out = boot.cor)
Intervals :
Level Normal Basic
95% ( 0.8409, 0.9318 ) ( 0.8394, 0.9442 )
Level Percentile BCa
95% ( 0.8204, 0.9251 ) ( 0.8217, 0.9265 )
Calculations and Intervals on Original Scale
Some basic intervals may be unstable
Some percentile intervals may be unstable
Some BCa intervals may be unstable
Warning message:
In boot.ci(boot.cor) : bootstrap variances needed for studentized intervals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.