gen_boot_samples_list: Bootstrapped resampling

Description Usage Arguments Value Examples

View source: R/gen_boot_samples_list.R

Description

Function for generating bootstrapped samples for of k vectors of lineup choices

Usage

1
gen_boot_samples_list(lineup_list, bootno)

Arguments

lineup_list

A list containing k vectors of lineup choices for k lineups, in which the target was either absent or present

bootno

Number of bootstrap samples

Value

A list of bootstrapped lineup data Length of list = no. of boostrap sample draws

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#Data:
A <-  round(runif(100,1,6))
B <-  round(runif(70,1,5))
C <-  round(runif(20,1,4))
linelist <- list(A, B, C)
rm(A, B, C)

bootno <- 1000

#Call:
bootdata <- gen_boot_samples_list(linelist, bootno)

r4lineups documentation built on May 2, 2019, 7:10 a.m.