Supplement 1. R code used in this study.

Nicholas M. Fountain‐Jones, Gregory J. Jordan, Thomas P. Baker, J Balmer, Tim J. Wardlaw, Susan C. Baker · Figshare · 2016

File ListRcode.txt (MD5: 251ee8b60b55024dd4aabc0f4903aa6a) Description R code used to run nonlinear CAP analysis (adapted from Millar et al. 2005) and Gradient Forest (adapted from Pitcher et al., 2011). The first section is the source code required to run NCAP, the second section is the NCAP executable and the third section is the executable to run gradient forests. To run this program requires the packages 'Extended forests' and 'Gradient forests', both available from R archive network (CRAN; cran.r-project.org).

Read the paper · More papers on PaperTik