View source: R/MadeyskiKitchenhamMetaAnalysis.R
getSimulationData | R Documentation |
Function to generate the simulated data set used in a paper 'Effect Sizes and their Variance for AB/BA Crossover Design Studies' by Lech Madeyski and Barbara Kitchenham
getSimulationData(
var,
covar,
meanA1,
treatmentDiff,
periodEffect,
numOfSamples
)
var |
Variance among subjects is a sum of the between subjects variance and the within subjects variance |
covar |
Covariance equal to the between subjects variance |
meanA1 |
Mean for treatment sequence A1 |
treatmentDiff |
technique effect which is the difference between the effect of technique A and technique B |
periodEffect |
Period effect which is the difference between period 1 and period 2 |
numOfSamples |
Number of samples ('rows' of data) required for each technique and period |
——————————————————————————————————- Functions related to a paper 'Effect sizes and their variance for AB/BA crossover design studies' by Lech Madeyski and Barbara Kitchenham ——————————————————————————————————-
Data frame: 'data.frame': 4*numOfSamples obs. of 5 variables: $ pid : int 1 2 3 4 5 6 7 8 9 10 ... $ technique: Factor w/ 2 levels 'T1','T2': ... $ period : Factor w/ 2 levels 'P1','P2': ... $ sequence : Factor w/ 2 levels 'S1','S2': ... $ result : num ...
Lech Madeyski and Barbara Kitchenham
# generate the simulated data set from the paper
data <- getSimulationData(25, 18.75, 50, 10, 5, 500)
data <- getSimulationData(25, 18.75, 50, 10, 5, 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.