-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruscios_A_boot.Rd
45 lines (33 loc) · 1.63 KB
/
ruscios_A_boot.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ruscios_A_boot.R
\name{ruscios_A_boot}
\alias{ruscios_A_boot}
\title{Bootstrapped Ruscio's A with 95 percent CIs and standard error}
\usage{
ruscios_A_boot(data, variable, group, value1 = 1, value2 = 0,
B = 2000, Conf.Level = 0.95, seed = 1, adjust_ceiling = TRUE)
}
\arguments{
\item{data}{data}
\item{variable}{continuous variable}
\item{group}{dichotomous group}
\item{value1}{assignment of group 1}
\item{value2}{assignment of group 2}
\item{B}{Number of boostrapped resamples}
\item{Conf.Level}{1 - alpha value (e.g., .95).}
\item{seed}{seed value for reproducability}
\item{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% bootstrapped confidence interval via the BCA method
ruscios_A_ci_upr Upper 95% bootstrapped confidence interval via the BCA method
}
\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/
}
\examples{
ruscios_A_boot(data = simulated_data, variable = "Score", group = "Condition", value1 = "B", value2 = "A")
}