Aimed at generating optimal treatment effect modifiers for RCT, pre-treatment scalar patient characteristics are linearly combined as a Generated Effect Modifier (GEM). This package gives functions for

See more detail in: E Petkova, T Tarpey, Z Su, and RT Ogden. Generated effect modifiers (GEMs) in randomized clinical trials. Biostatistics, (First published online: July 27, 2016). doi: 10.1093/biostatistics/kxw035.


You can install:


library(pirate) will load the core packages.


For questions and other discussion, please email [email protected].

Try the pirate package in your browser

Any scripts or data that you put into this service are public.

pirate documentation built on May 30, 2017, 2:22 a.m.