Multimorbidity analysis of FracturesE3 cross-sectional data from The Gambia, South Africa and Zimbabwe
# Multimorbidity among older people in three African countries: a population-based cross-sectional study in The Gambia, South Africa, and Zimbabwe
Analysis code for the Fractures E3 multimorbidity study: a cross-sectional
analysis of chronic conditions, their combinations, their risk factors, and
their association with health-related quality of life among adults aged 40 years
and over in The Gambia, Zimbabwe and South Africa.
**Citation.** TBC
**Contact:** c.calderwood@imperial.ac.uk
## Data availability
No participant data are included in this repository. Researchers can access participant-level data via data.bris, provided ethical approvals are compliant with country-specific governance regulations.
Data preparation is also outside this repository. Deriving the chronic condition variables uses participants' free-text descriptions of their own conditions and medications, which are identifying. The code here begins from a prepared analysis dataset, specified variable by variable in
`assets/data_dictionary.md`.
## Requirements
- R, with the packages loaded in `R/00_settings/01_packages.R`
- Stata, for the latent class models
`output/sessionInfo.txt` records the R and package versions of the run that
produced the output.
## Layout
```
run_analysis.R one script to source all files - update project directory, data directory and output directory
R/00_settings/ packages, analysis parameters, colours, plot and table formatting
R/01_functions/ shared helpers, including the site-stratified model loop
R/02_prepare/ load and check data, export the Stata input, build standardisation weights
R/03_descriptive/ table 1, supplementary tables 5 to 7
R/04_combinations/ figure 1, supplementary figures 2 and 3, supplementary tables 18 and 19
R/05_pyramids/ figure 2, supplementary figures 4 to 6
R/06_riskfactors/ supplementary figures 7 and 8, supplementary tables 20 and 21
R/07_hrq …