FHdesign.pdf (129.32 kB)View fileThis item contains files with download restrictions
TEXT
FHanal.r (15.18 kB)View fileThis item contains files with download restrictions
DOCUMENT
FHanal.pdf (1.38 MB)View fileThis item contains files with download restrictions
TEXT
FHpower.r (2.5 kB)View fileThis item contains files with download restrictions
DOCUMENT
FHpower.pdf (132.34 kB)View fileThis item contains files with download restrictions
TEXT
globalPower.r (7.54 kB)View fileThis item contains files with download restrictions
TEXT
AltRowColDesign.r (6.82 kB)View fileThis item contains files with download restrictions
DOCUMENT
AltRowColDesign.pdf (232.17 kB)View fileThis item contains files with download restrictions
TEXT
AltRCpower.r (2.53 kB)View fileThis item contains files with download restrictions
DOCUMENT
AltRCpower.pdf (131.89 kB)View fileThis item contains files with download restrictions
Next page
Previous page
1/1
Switch ViewSwitch between different file views
Thumbnail viewList viewFile view
11 filesFullscreen
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.
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.