On this page we provide example datasets, analysis code in SAS and R, and outputs, for the three kinds of hybrid experimental designs considered in this recent paper:
Nahum-Shani, I., Dziak, J. J., Venera, H., Spring, B., & Dempsey W. (2023). Design of Experiments with Sequential Randomizations at Multiple Time Scales: The Hybrid Experimental Design. Behavior Research Methods, doi:10.3758/s13428-023-02119-z.
Simulated Data
Analysis Code for R
Sample Output from R:
hello world i'm r
Analysis Code for SAS
Sample Output from SAS:
hello world i'm sas
Simulated Occasion-Level Data
Simulated Person-Level Data
Analysis Code for R
Sample Output from R:
hello world i'm r
Analysis Code for SAS
Sample Output from SAS:
hello world i'm sas
Simulated Occasion-Level Data
Simulated Person-Level Data
Analysis Code for R
Sample Output from R:
hello world i'm r
Analysis Code for SAS
Sample Output from SAS:
hello world i'm sas
A more advanced example analysis for a hybrid SMART-MRT in which only nonresponders received the micro-randomized treatments, analyzed using a robust method which allows time-varying covariates.
Open-access preprint of the Behavior Research Methods article.