**Please read this Wiki**
Illustrative syntax for conducting cross-cohort analyses in R and Stata.
Syntax accompanies paper "Investigating change across time in prevalence or association using observational data: guidance on utility, methodology, and interpretation" by Bann et al. (2021).
The important files are `cohort_data.dta`, `cohort_data.dta`, `r_syntax.html` and `stata_syntax.html`. R Markdown, Jupyter Notebook and data simulation syntax files added for completeness.
The HTML files are too large too view within the OSF so can instead be viewed at http://ljwright.rbind.io/html/r_syntax.html and http://ljwright.rbind.io/html/stata_syntax.html (or downloaded, of course)