
Nonparametric bootstrap for AM / blackbox scaling positions
Source:R/spatial_voting.R
morie_spatial_voting_nonparametric_bootstrap.RdEfron & Tibshirani (1993) resampling of respondents for Aldrich-McKelvey and Basic Space scaling SEs.
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
#>