boot | R Documentation |
Performs a bootstrap by resampling the individual data matrices.
boot(D, R = 100, A = 1:I, s = rep(1/J, J), constrained = TRUE)
D |
either a 3d array consisting of the individual paired
comparison matrices or an object of class
|
R |
the number of bootstrap samples |
A |
a list of vectors consisting of the stimulus aspects;
the default is |
s |
the starting vector with default |
constrained |
logical, if TRUE (default), parameters are constrained to be positive |
The bootstrap functions eba.boot.constrained
and eba.boot
are automatically called by boot
.
The code is experimental and may change in the future.
p |
the matrix of bootstrap vectors |
stat |
the matrix of bootstrap statistics, including parameter means, standard errors, and confidence limits |
eba
, simulate.eba
,
paircomp
.
data(pork) # pork tasting data, 10 individual paired comparison matrices
m <- eba(apply(pork, 1:2, sum)) # fit Bradley-Terry-Luce model
b <- boot(pork, R = 200) # resample 200 times
plot(coef(m), b$stat[, "mean"], log = "xy")
abline(0, 1, lty = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.