This Code Ocean compute capsule will allow you to reproduce the results published by the author on your local machine1. Follow the instructions below, or consult our knowledge base for more information. Don't hesitate to reach out via live chat or email if you have any questions.
1 You may need access to additional hardware and/or software licenses.
- Docker Community Edition (CE)
- MATLAB/MOSEK/Stata licenses where applicable
This capsule is private and its environment cannot be downloaded at this time. You will need to rebuild the environment locally.
If there's any software requiring a license that needs to be run during the build stage, you'll need to make your license available. See our knowledge base for more information.
In your terminal, navigate to the folder where you've extracted the capsule and execute the following command:
cd environment && docker build . --tag 23417293-1604-4d15-8bae-8735feb438ad; cd ..
This step will recreate the environment (i.e., the Docker image) locally, fetching and installing any required dependencies in the process. If any external resources have become unavailable for any reason, the environment will fail to build.
In your terminal, navigate to the folder where you've extracted the capsule and execute the following command, adjusting parameters as needed:
docker run --rm \
--workdir /code \
--mac-address=12:34:56:78:9a:bc \ # this should match your local machine MAC address
--volume "$PWD/license.lic":/MATLAB/licenses/network.lic \
--volume "$PWD/data":/data \
--volume "$PWD/code":/code \
--volume "$PWD/results":/results \
23417293-1604-4d15-8bae-8735feb438ad ./run