get_boot_ci: Get Boot CI The function gets participant-level scores, and...

View source: R/utility.R

get_boot_ciR Documentation

Get Boot CI The function gets participant-level scores, and calculates a bootstrapped confidence interval (CI) on the group-level statistic

Description

Get Boot CI The function gets participant-level scores, and calculates a bootstrapped confidence interval (CI) on the group-level statistic

Usage

get_boot_ci(scores, ci_level = 95, ci_reps = 0)

Arguments

scores

participant-level scores

ci_level

- The confidence level (in percents, e.g. setting the argument to 50 generates a 50 to use when computing the bootstrapped confidence interval on the group-level statistic (see the return value 'ci', and the argument 'ci_reps'). The default value of this argument is 95, that would lead to computing the 95 the group-level statistic.

ci_reps

- The number repetitions to use when computing the bootstrapped confidence interval around the group-level statistic. The default value of this argument is zero, which would lead to not computing the confidence interval at all.

Value

a vector with the ci values (lower bound, upper bound) according to the given confidence level ('ci_level'). If 'ci_reps' is set to zero, the function returns NA.


mufcItay/weaknull documentation built on Jan. 29, 2025, 7:28 p.m.