Skip to contents

Efron & Tibshirani (1993) resampling of respondents for Aldrich-McKelvey and Basic Space scaling SEs.

Usage

morie_spatial_voting_nonparametric_bootstrap(
  Z,
  scale_fn = "am",
  n_boot = 200L,
  seed = 42L
)

Arguments

Z

Perception matrix.

scale_fn

One of "am", "blackbox", "blackbox_t".

n_boot

Number of bootstrap replications.

seed

RNG seed.

Value

List with se_positions, boot_mean, ci_lower, ci_upper, n_boot.

References

Efron, B. and Tibshirani, R. (1993). An Introduction to the Bootstrap. Chapman & Hall.

Examples

set.seed(1)
Z <- matrix(rnorm(20 * 5), 20, 5)
morie_spatial_voting_nonparametric_bootstrap(Z, n_boot = 10L)
#> $se_positions
#> [1] 0.1848703 0.6612619 0.3457832 0.6188288 0.7402669
#> 
#> $boot_mean
#> [1] -1.2511743 -0.2247689  0.1124443  0.4919151  0.8715839
#> 
#> $ci_lower
#> [1] -1.5034388 -0.9385449 -0.3256243 -0.5473296 -0.6705210
#> 
#> $ci_upper
#> [1] -1.0156345  0.8707560  0.6309025  1.3220813  1.4848842
#> 
#> $n_boot
#> [1] 10
#>