Skip to contents

Introduction

Repeated measures involve collecting multiple data points for the same variable from the same subjects across multiple time periods. This method provides insights into the subjects’ development and changes over time. In this context, a single subject can have multiple responses over time, and these responses can be correlated across different visits.

For a normal endpoint in repeated measures, the generation of responses primarily depends on the mean and standard deviation across all visits, as well as the correlation between these visits.

Once CyneRgy is installed, you can load this example in RStudio with the following commands:

CyneRgy::RunExample( "2ArmNormalRepeatedMeasuresResponseGeneration" )

Running the command above will load the RStudio project in RStudio.

RStudio Project File: 2ArmNormalRepeatedMeasuresResponseGeneration.Rproj

In the R directory of this example you will find the following R files:

  1. GenerateResponseDiffOfMeansRepeatedMeasures.R - The R function named “GenRespDiffOfMeansRepMeasures” in the file is used to generate the normal responses across multiple visits for 2-arm normal repeated measures design.

  2. LibraryMASS.R - This file is used to load the library “MASS” to run mvrnorm() function.