Learn R Programming

reproducer (version 0.4.0)

getTheoreticalEffectSizeVariancesABBA: getTheoreticalEffectSizeVariancesABBA

Description

Function provides the theoretical value of the t-statistic, variance of t, and variance of the effect sizes based on the parameters built into crossover model data simulated by the getSimilationData() function. Function is used in a paper "Effect Sizes and their Variance for AB/BA Crossover Design Studies" by Lech Madeyski and Barbara Kitchenham.

Usage

getTheoreticalEffectSizeVariancesABBA(
  theoreticalvarW,
  theoreticalTechniqueEffect,
  theoreticalrho,
  N1,
  N2
)

Arguments

theoreticalvarW

- The within subject variance used to construct the simulation, i.e., the built-in Variance - the built-in Covariance

theoreticalTechniqueEffect

- The technique effect built into the crossover model data

theoreticalrho

- The between subject correlation built into the crossover model simulation data

N1

- The number of subjects in sequence group 1 in the crossover model simulation

N2

- The number of subjects in sequence group 2 in the crossover model simulation

Value

data frame incl. calculated: theoreticalt - the theoretical value of the t-statistic theoreticalvart - variance of t theoreticalvardIG - variance of the effect size dIG based on the parameters built into crossover model data simulated by the getSimilationData function theoreticalvardRM - variance of the effect size dRM based on the parameters built into crossover model data simulated by the getSimilationData function

Examples

Run this code
# NOT RUN {
# Generates data used in Table 15 of the paper
theoreticalEffectSizeVariances <- getTheoreticalEffectSizeVariancesABBA(6.25,-10,0.75,15,15)
# }

Run the code above in your browser using DataLab