Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
**Introduction** This repository contains the code used for the analyses presented in our article titled "Extended reality used in the treatment of phantom limb pain: a multicenter, double-blind, randomized controlled trial," published in the journal Pain. This page provides an overview of the repository contents, instructions on how to use the code, and additional resources. **Original article** Lendaro, E., Van der Sluis, C.K., Hermansson, L., Bunketorp-Käll, L., Burger, H., Keesom, E., Widehammar, C., Munoz-Novoa, M., McGuire, B.E., Reilly, P.O., Earley, E.J., Iqbal, S., Kristoffersen, M.B., Stockselius, A., Gudmundson, L., Hill, W., Diers, M., Turner, K.L., Weiss, T., Ortiz-Catalan, M. (2024). Extended reality used in the treatment of phantom limb pain: a multicenter, double-blind, randomized controlled trial. Pain. doi: 10.1097/j.pain.0000000000003384. Epub ahead of print. PMID: 39250328. **Repository Contents** code/: Contains all the Matlab scripts used in data processing and analysis. The raw data is available as a supplement of the original article **Prerequisites** MATLAB 2021 or later Add all necessary paths to MATLAB using the addpath function **Running the analyses** For a direct replication of the results of the manuscript it is necessary to use the pre-imputed data: addpath('path to folder with .mat file'); load('workspace2023-01-21 111215.mat'); % Load saved workspace For running the analysis starting from raw data, download the excel file provided as supplementary material to the article: file = [folder 'data_for_stats_v3.xlsx']; load_data(); % Load and format the data If starting with raw data it is necessary to perform data imputation. Run each analysis cell as needed by executing the cell in MATLAB. Each cell corresponds to different stages of the analysis: 1. Baseline Data Distribution 2. Primary and Secondary Analyses (Intention-to-Treat and Per-Protocol) 3. Exploratory Analyses 4. Sensitivity Analyses 5. ANCOVA Analyses 6. Subgroup Analyses 7. Odds Ratios 8. Trend Plotting 9. Exponential Decay Modeling 10. Bayes Factor Calculation 11. Saving Results Results are saved automatically in designated folders created at the beginning of the 'main' script. Ensure the folder paths are correctly set up as per your directory structure.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.