This project came up from my PhD research at Glasgow Caledonian University. It contains source code for analysis of objectively measured physical activity.
This repository mostly contains the source code. Data is available in a separate data repository. This because the size of data is quite large and it's easier to separate intermediate data processing from the released data sets.
Tested on Ubuntu 20.04 LTS system, you may need to adjust scripts for other platforms. C++ code also works on Windows platforms (x86 and x64), but scripting is only available on Ubuntu (or similar Linux systems).
git clone https://github.com/o-mdr/pa-pattern-complexity.git
cd pa-pattern-complexity
sudo ./script/bootstrap
./script/download-data
./script/bootstrap
contains all the required software. To minimise friction consider using Ubuntu system for analysis.
The following data sources are used in this project:
# Using meson build system
meson setup builddir
meson compile -C builddir
# Or you could use Visual Studio, open solution file in
# src\nhanes.vs.sln
Described in NHANES Data cleanup.
- R - Statistical computing and graphics environment
- CircleCI - CI server
- Meson - modern C++ build tool
- Visual Studio Code - IDE
- Visual Studio - IDE
Any contributions are welcome, please read contributing guide for the process for submitting pull requests. Code of Conduct: contributor covenant.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- https://wwwn.cdc.gov/nchs/nhanes for providing valuable data
Q: Download script crashes, I think this is because my machine ran out of memory.
A: Conversion from XPT to CSV is done inefficiently. A workaround for this is to increase a swap file. On my machine 16 GB RAM + 16 GB swap file seem to work OK.
- Oleksii Mandrychenko - Initial work