This function analyses data on r values obtained in the format obtained from the ConstructLevel1ExperimentRData function and finds the r-value for each metric for each experiment.
CalculateLevel2ExperimentRData( Level1Data, Groups, StudyID, ExperimentNames, Metrics, Type
)
Arguments
Level1Data: a tibble in the format produced by the ConstructLevel1ExperimentRData function which has r-values for each sequence group in a crossover experiment
Groups: This is a list that defines the sequence group labels used in the dataset.
StudyID: This holds an identifier used to identify the origin of the experimental data in the output from this function.
ExperimentNames: This a list of identifiers used to define each experiment in the output from this function.
Metrics: This is a list of of character strings identifying each outcome metric reported in each of the experiments in the set of replicated experiments.
Type: this is a list of character strings specifying for each experiment whether the experiment is a two sequence group '2G' or four sequence group '4G' experiment. return RExp.Table This is a table containing the pooled data variance and the pooled difference variance for the experiment and the value r for the experiment for each metric