This repository contains the data and code necessary to reproduce results for the manuscript:
Tiwari, S. R., Vigotsky, A. D., & Apkarian, A. V. (2022). On the relationship between pain variability and relief in randomized clinical trials. Frontiers in Pain Research, 3. https://doi.org/10.3389/fpain.2022.844309
In case of any questions, please do not hesitate to contact us.
This code was used on a Windows machine using the following setup:
- R (4.2.0) with
- emmeans (1.7.5)
- pwr (1.3.0)
- boot (1.3.28)
- performance (0.9.1)
- ggplot2 (3.3.6)
- ggeffects (1.1.2)
- patchwork (1.1.1)
var_analysis.R
contains the scripts for the study's tables and figures (as well as supplementary tables/figures); the data for the study can be found within the "data" folder and the resulting figures within the "figures" folder