cohensd_A: Generate the mean of the contaminated group, the standard...

View source: R/cohensd_A.R

cohensd_AR Documentation

Generate the mean of the contaminated group, the standard deviation of the contaminated group, and Cohen's d for one randomly distributed data set against a normal data set contaminated with another normal data set

Description

Generates the mean of the contaminated group, the standard deviation of the contaminated group, and Cohen's d effect size for one randomly distributed data set against a normal data set contaminated with another normal data set with defined characteristics (number of subjects, percent of subjects with x mean and y standard deviation, percent of subjects with z mean and a standard deviation, mean of the first data set, x mean, z mean, standard deviation of the second data set, y standard deviation, and a standard deviation)

Usage

cohensd_A(num0, num1, num2, bef, aft1, aft2, stdev0, stdev1, stdev2)

Arguments

num0

number of subjects

num1

percent/decimal of subjects for the first group

num2

percent/decimal of subjects for the second group

bef

mean of the original group

aft1

mean for the first group

aft2

mean for the second group

stdev0

standard deviation of the original group

stdev1

standard deviation for the first group

stdev2

standard deviation mean for the second group

Value

vector with mean of the contaminated group, standard deviation of the contaminated group, and Cohen's d

Examples

cohensd_A(75,0.8,0.2,0,1,0.5,1,1,2)

dakthomps00/researchfunctions documentation built on March 19, 2022, 10:50 a.m.