Probability of Superiority Calculation
probability_superiority.Rd
This function calculates the probability of superiority from independent samples Cohen's d calculation.
Usage
probability_superiority(
d = NULL,
m1 = NULL,
m2 = NULL,
sd1 = NULL,
sd2 = NULL,
n1 = NULL,
n2 = NULL,
a = 0.05,
t = NULL,
model = NULL,
df = NULL,
x_col = NULL,
y_col = NULL
)
Arguments
- d
the effect size
- m1
mean group one
- m2
mean group two
- sd1
standard deviation group one
- sd2
standard deviation group two
- n1
sample size group one
- n2
sample size group two
- a
significance level
- t
optional, calculate d from independent t, you must include n1 and n2 for degrees of freedom
- model
optional, calculate d from t.test for independent t, you must still include n1 and n2
- df
optional dataframe that includes the x_col and y_col
- x_col
name of the column that contains the factor levels OR a numeric vector of group 1 scores
- y_col
name of the column that contains the dependent score OR a numeric vector of group 2 scores