ruscios_A_boot: Bootstrapped Ruscio's A with 95 percent CIs and standard...

View source: R/ruscios_A_boot.R

ruscios_A_bootR Documentation

Bootstrapped Ruscio's A with 95 percent CIs and standard error

Description

This function bootstraps confidence intervals for Ruscio's A effect size (2008). Code adapted from adapted from John Ruscio's original implementation of his metric: https://ruscio.pages.tcnj.edu/quantitative-methods-program-code/

Usage

ruscios_A_boot(
  data,
  variable,
  group,
  value1 = 1,
  value2 = 0,
  B = 2000,
  Conf.Level = 0.95,
  seed = 1,
  adjust_ceiling = TRUE
)

Arguments

data

data

variable

continuous variable

group

dichotomous group

value1

assignment of group 1

value2

assignment of group 2

B

Number of boostrapped resamples

Conf.Level

1 - alpha value (e.g., .95).

seed

seed value for reproducability

adjust_ceiling

Should Ruscio's A estimates of 0 and 1 be adjusted so that they can be converted to finite odds ratios? This is done by rescoring a single data point as being was inferior to a single second data point between the conditions. Ie., it uses the best granularity allowed by the data, as more data points will result in a more extreme possible values of A.

Value

ruscios_A_estimate Ruscio's A.

ruscios_A_se Standard error of bootstrapped Ruscio's A values.

ruscios_A_ci_lwr Lower 95

ruscios_A_ci_upr Upper 95

Examples

ruscios_A_boot(data = simulated_data, variable = "Score", group = "Condition", value1 = "B", value2 = "A")


ianhussey/SCED documentation built on Aug. 25, 2022, 4:42 p.m.