The University of Adelaide
Browse
TEXT
FHdesign.r (3.56 kB)
DOCUMENT
FHdesign.pdf (129.32 kB)
TEXT
FHanal.r (15.18 kB)
DOCUMENT
FHanal.pdf (1.38 MB)
TEXT
FHpower.r (2.5 kB)
DOCUMENT
FHpower.pdf (132.34 kB)
TEXT
globalPower.r (7.54 kB)
TEXT
AltRowColDesign.r (6.82 kB)
DOCUMENT
AltRowColDesign.pdf (232.17 kB)
TEXT
AltRCpower.r (2.53 kB)
DOCUMENT
AltRCpower.pdf (131.89 kB)
1/0
11 files

Supplemental R Scripts and output files for Designing, understanding and modelling two-phase experiments with human subjects. Statistical Methods in Medical Research, 31(4), 626-645.

online resource
posted on 2022-03-31, 00:37 authored by Chris BrienChris Brien
R scripts and their pdf output files are provided for designing and analyzing the Farewell and Herzberg (2003) example of a human training experiment and for producing an alternative design that employs a row-column design for the second phase. (Also available with the peer-reviewed publication linked on the right.)

The following files are available here:
FHdesign.r:
R script to produce and investigate the Farewell and Herzberg Plaid design (output in FHdesign.pdf).
FHanal.r:
R script to conduct a mixed-model analysis of the Farewell and Herzberg data (output in FHanal.pdf). This script requires the R data file plaid.dat.rda that contains the Farewell and Herzberg data in a suitable format and the file global.r that is sourced by FHanal.r and sets constants and functions used in the script.
FHpower.r:
R script to do a power simulation for the Farewell and Herzberg design (output in FHpower.pdf). This script requires the R data file plaid.dat.rda that contains the Farewell and Herzberg design and the file globalPower.r that sets constants and functions used in the script.
globalPower.r:
R script to sets constants and functions. It is sourced by the scripts FHpower.r and Altpower.r.
AltRowColDesign.r:
R script to produce and investigate an alternative second-phase design employing a row-column design and groups of patients assigned to different raters (output in AltRowColDesign.pdf).
Altpower.r:
R script to do a power simulation for the row-column design (output in Altpower.pdf). This script requires the R data file AltRowColDesign.RData, produce by AltRowColDesign.r and the file globalPower.r that sets constants and functions used in the script.

History