Description Usage Arguments Value Examples
Function for computing mean. med and se of boot proportion
1 | gen_boot_propmean_se(lineuprops)
|
lineuprops |
A dataframe of bootstrapped lineup proportions |
Mean, median, standard deviation, standard error & 95 CIs of lineup proportion across a bootstrapped dataframe
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #Data:
lineup_vec <- round(runif(100, 1, 6))
target_pos <- 3
#Bootstrap data:
lineup_boot_df <- gen_boot_samples(lineup_vec, 1000)
#Compute proportion for bootstrap samples:
lineuprops <- gen_lineup_prop(lineup_boot_df, target_pos = 3, k = 6)
#Call:
gen_boot_propmean_se(lineuprops)
#OR:
lineuprops <- boot::boot(lineup_vec, lineup_prop_boot, target_pos = 3, R = 1000)
gen_boot_propmean_se(lineuprops$t)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.