Australian Parental Supply of Alcohol Longitudinal Study (APSALS) Analysis Code
R Analysis Code
This repository contains R code used in a number of articles using the Australian Parental Supply of Alcohol Longitudinal Study (APSALS).
The overall effect of parental supply of alcohol across adolescence on alcohol-related harms in early adulthood—a prospective cohort study
Code for all analysis in the article by Clare et al 2020 published in Addiction: https://doi.org/10.1111/add.15005
Description | R-code |
---|---|
A1 - Multiple imputation | Multiple imputation |
A2 - Final data creation | Final data creation |
A3 - LTMLE analysis of parental supply of alcohol on harms using the package ‘ltmle’ (1). | LTMLE analysis |
A4 - LTMLE marginal structural model analysis of earlier initiation of supply. | LTMLE MSM analysis |
A5 - Sensitivity analysis using naive analysis (GLMs) | Naive analysis |
A6 - E-Value sensitivity analysis | E-value analysis |
A7 - Secondary analysis of exposure (parental supply) beginning at age 15. | LTMLE - supply from age 15 |
A8 - Sensitivity analysis with lagged predictors. | LTMLE - lagged predictors |
A9 - Sensitivity analysis controlling for past obervations of outcome | LTMLE - control for past outcomes |
A10 - Sensitivity analysis with continuous outcomes. | LTMLE - continuous outcomes |
Changes in mental health and help-seeking among young Australian adults during the COVID-19 pandemic: a prospective cohort study
R and Stata code for all analysis of APSALS COVID-19 Alcohol paper, Upton et al 2021 published in Psychological Medicine: https://doi.org/10.1017/S0033291721001963
Description | R-code |
---|---|
S1 - Missing data patterns | Missing data |
S2 - Multiple imputation | Multiple imputation |
S3 - Final data creation | Final data creation |
S4 - Import MI data into Stata for analysis | Stata import |
S5 - Primary analysis with data in long-form | Primary long-form analysis |
S6 - Primary analysis with data in wide-form | Primary wide-form analysis |
S7 - Additional analysis comparing COVID subsample to full APSALS cohort | Additional table |
Alcohol use among young Australian adults during the COVID-19 pandemic: a prospective cohort study
R and Stata code for all analysis of APSALS COVID-19 Alcohol paper, Clare et al 2021 published in Addiction: https://doi.org/10.1111/add.15599
Description | R-code |
---|---|
S1 - Multiple imputation | Multiple imputation |
S2 - Final data creation | Final data creation |
S3 - Import MI data into Stata for analysis | Stata import |
S4 - Cross-sectional descriptives in R | Cross-sectional descriptives |
S5 - Longitudinal descriptives in Stata | Longitudinal descriptives |
S6 - Primary analyses using mixed effects models with discrete time | Primary analyis |
S7 - Sensitivity analysis using continuous time and ‘high risk’ consumption variable | Sensitivity analysis |
Tobacco and vaping characteristics over 5 years in the Australian Parental Supply of Alcohol Longitudinal Study (APSALS)
R and Stata code for all analysis of APSALS COVID-19 Tobacco paper, Boland et al 2022, in progress
Description | R-code |
---|---|
S1 - Multiple imputation | Multiple imputation |
S2 - Final data creation | Final data creation |
S3 - Descriptive statistics | Descriptives |
S4 - Analysis of raw trends | Trends |
S5 - Multivariable regression models | Models |
S6 - Correlation analysis | Correlation |
- Lendle SD, Schwab J, Petersen ML, van der Laan MJ. ltmle: An R Package Implementing Targeted Minimum Loss-Based Estimation for Longitudinal Data. Journal of Statistical Software. 2017;81(1):1-21.