check_effects: Check effect size vector

Description Usage Arguments Details Value

Description

Checks the vector specifying the effects used for the scenario to ensure no duplicate effect sizes are being stored.

Usage

1
check_effects(es_vector)

Arguments

es_vector

A vector of user-specified effect sizes.

Details

An internal function that carries out it's operation in the environment created for effect_size checking. Keeps a list of vectors that were specified by the user, as well as a list of effect_size objects in this environment.

Value

If vector has already been added previously the index for the effect_size object location in the list is return. If it has not, then the vector is added to the list and 0 returned to indicate that a new effect_size object should be created.


emartchenko/mvsimstudy documentation built on May 24, 2019, 5:04 a.m.