boot: Bootstrap for Elimination-by-Aspects (EBA) Models

Description Usage Arguments Details Value See Also Examples

View source: R/boot.R

Description

Performs a bootstrap by resampling the individual data matrices.

Usage

1
boot(D, R = 100, A = 1:I, s = rep(1/J, J), constrained = TRUE)

Arguments

D

a 3d array consisting of the individual paired comparison matrices

R

the number of bootstrap samples

A

a list of vectors consisting of the stimulus aspects; the default is 1:I, where I is the number of stimuli

s

the starting vector with default 1/J for all parameters, where J is the number of parameters

constrained

logical, if TRUE (default), parameters are constrained to be positive

Details

The bootstrap functions eba.boot.constrained and eba.boot are called automatically by boot.

The code is experimental and may change in the future.

Value

p

the matrix of bootstrap vectors

stat

the matrix of bootstrap statistics, including parameter means, standard errors, and confidence limits

See Also

eba, simulate.eba.

Examples

1
2
3
4
5
6
data(pork)  # pork tasting data, 10 individual paired comparison matrices
btl1 <- eba(apply(pork, 1:2, sum))  # fit Bradley-Terry-Luce model
b <- boot(pork, 200)                # resample 200 times

plot(btl1$estimate, b$stat[, "mean"], log="xy")
abline(0, 1, lty=2)

eba documentation built on Sept. 25, 2018, 5:03 p.m.

Related to boot in eba...