Code
This page includes code that Natalie has developed for some of her published works.
Code for the data analysis portion of “Comparison of dimension reduction methods for the identification of heart-healthy dietary patterns” can be found below:
- Full R code in .txt format with accompanying C++ code in .txt format (updated Feb. 12, 2023) for the complete code including least squares adjustment for covariates, optimized for speed
- Simplified R code in .txt format to compare our SPLS code (updated Sept. 12, 2022) with the R package spls.
