Scientists who study humans are fundamentally interested in questions of causation, yet conceptual, methodological, and practical barriers have historically prevented their use of methods for causal inference developed in other fields. More specifically, scientists, clinicians, educators, and policymakers alike are often interested in causal processes involving questions about when (timing) and to what extent (dose) different factors influence human functioning and development, in order to inform our scientific understanding and improve people’s lives.
Marginal structural models (MSMs; Robins et al., 2000), orginating in epidemiology and public health, represent one under-utilized tool for improving causal inference with longitudinal observational data, given certain assumptions. In brief, MSMs leverage inverse-probability-of-treatment-weights (IPTW) and the potential outcomes framework. MSMs first focus on the problem of confounding, using IPTW to attenuate associations between measured confounders and an exposure (e.g., experience, characteristic, event –from biology to the broader environment) over time. A weighted model can then be fitted relating a time-varying exposure and a future outcome. Finally, the model-predicted effects of different exposure histories, that vary in dose and timing, can be evaluated and compared as counterfactuals to reveal putative causal effects.
devMSMs is an R package accompanying our tutorial paper, Investigating Causal Questions in Human Development using Marginal Structural Models: A Tutorial Introduction to the devMSMs Package in R (insert preprint link here), for implementing MSMs with longitudinal data to answer causal questions about the dose and timing effects of a given exposure on a future outcome.
Scientists who study humans are fundamentally interested in questions of causation, yet conceptual, methodological, and practical barriers have historically prevented their use of methods for causal inference developed in other fields. More specifically, scientists, clinicians, educators, and policymakers alike are often interested in causal processes involving questions about when (timing) and to what extent (dose) different factors influence human functioning and development, in order to inform our scientific understanding and improve people’s lives.
Marginal structural models (MSMs; Robins et al., 2000), orginating in epidemiology and public health, represent one under-utilized tool for improving causal inference with longitudinal observational data, given certain assumptions. In brief, MSMs leverage inverse-probability-of-treatment-weights (IPTW) and the potential outcomes framework. MSMs first focus on the problem of confounding, using IPTW to attenuate associations between measured confounders and an exposure (e.g., experience, characteristic, event –from biology to the broader environment) over time. A weighted model can then be fitted relating a time-varying exposure and a future outcome. Finally, the model-predicted effects of different exposure histories, that vary in dose and timing, can be evaluated and compared as counterfactuals to reveal putative causal effects.
devMSMs is an R package accompanying our tutorial paper, Investigating Causal Questions in Human Development using Marginal Structural Models: A Tutorial Introduction to the devMSMs Package in R (insert preprint link here), for implementing MSMs with longitudinal data to answer causal questions about the dose and timing effects of a given exposure on a future outcome.
Core features of this package include:
flexible functions with built-in guidance, drawing on established expertise and best practices for implementing longitudinal IPTW weighting and outcome modeling to answer substantive causal questions about dose and timing
diff --git a/pkgdown.yml b/pkgdown.yml
index d6dbd1f5..ca8e2ef2 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -7,7 +7,7 @@ articles:
Specify_Core_Inputs: Specify_Core_Inputs.html
Terminology: Terminology.html
Workflow_Continuous_Exposure: Workflow_Continuous_Exposure.html
-last_built: 2023-11-29T18:27Z
+last_built: 2023-11-29T18:35Z
urls:
reference: https://istallworthy.github.io/devMSMs/reference
article: https://istallworthy.github.io/devMSMs/articles
diff --git a/reference/Rplot001.png b/reference/Rplot001.png
index 9c3b6efc..d6d5b6de 100644
Binary files a/reference/Rplot001.png and b/reference/Rplot001.png differ
diff --git a/reference/Rplot002.png b/reference/Rplot002.png
index 7a5d1e7b..84a5f2a8 100644
Binary files a/reference/Rplot002.png and b/reference/Rplot002.png differ
diff --git a/reference/Rplot003.png b/reference/Rplot003.png
index 9d00ecf0..b54b5f1e 100644
Binary files a/reference/Rplot003.png and b/reference/Rplot003.png differ
diff --git a/reference/Rplot004.png b/reference/Rplot004.png
index 649dd382..04c56e42 100644
Binary files a/reference/Rplot004.png and b/reference/Rplot004.png differ
diff --git a/reference/Rplot005.png b/reference/Rplot005.png
index 62e94083..eac8e3c9 100644
Binary files a/reference/Rplot005.png and b/reference/Rplot005.png differ
diff --git a/reference/Rplot006.png b/reference/Rplot006.png
index 62e94083..eac8e3c9 100644
Binary files a/reference/Rplot006.png and b/reference/Rplot006.png differ
diff --git a/reference/Rplot007.png b/reference/Rplot007.png
index b7d47d5a..ab9c144e 100644
Binary files a/reference/Rplot007.png and b/reference/Rplot007.png differ
diff --git a/reference/Rplot008.png b/reference/Rplot008.png
index b7d47d5a..ab9c144e 100644
Binary files a/reference/Rplot008.png and b/reference/Rplot008.png differ
diff --git a/reference/Rplot009.png b/reference/Rplot009.png
index c6574fbe..d8314b62 100644
Binary files a/reference/Rplot009.png and b/reference/Rplot009.png differ
diff --git a/reference/Rplot010.png b/reference/Rplot010.png
index af06a025..d81859cf 100644
Binary files a/reference/Rplot010.png and b/reference/Rplot010.png differ
diff --git a/reference/Rplot011.png b/reference/Rplot011.png
index 88ffbb71..ed266c70 100644
Binary files a/reference/Rplot011.png and b/reference/Rplot011.png differ
diff --git a/reference/Rplot012.png b/reference/Rplot012.png
index 2b281a33..2abd1fe9 100644
Binary files a/reference/Rplot012.png and b/reference/Rplot012.png differ
diff --git a/reference/Rplot013.png b/reference/Rplot013.png
index e4a5f274..72a543a5 100644
Binary files a/reference/Rplot013.png and b/reference/Rplot013.png differ
diff --git a/reference/Rplot014.png b/reference/Rplot014.png
index 7c8ecaf3..056d409d 100644
Binary files a/reference/Rplot014.png and b/reference/Rplot014.png differ
diff --git a/reference/Rplot015.png b/reference/Rplot015.png
index ec351238..da20134e 100644
Binary files a/reference/Rplot015.png and b/reference/Rplot015.png differ
diff --git a/reference/Rplot016.png b/reference/Rplot016.png
index 6e95a872..b1428ade 100644
Binary files a/reference/Rplot016.png and b/reference/Rplot016.png differ
diff --git a/reference/Rplot017.png b/reference/Rplot017.png
index cb38a957..40d30708 100644
Binary files a/reference/Rplot017.png and b/reference/Rplot017.png differ
diff --git a/reference/Rplot018.png b/reference/Rplot018.png
index 4a8c4906..f8c797bb 100644
Binary files a/reference/Rplot018.png and b/reference/Rplot018.png differ
diff --git a/reference/Rplot019.png b/reference/Rplot019.png
index 5565895e..208e97ec 100644
Binary files a/reference/Rplot019.png and b/reference/Rplot019.png differ
diff --git a/reference/Rplot020.png b/reference/Rplot020.png
index 81ec744a..c51b1071 100644
Binary files a/reference/Rplot020.png and b/reference/Rplot020.png differ
diff --git a/reference/Rplot021.png b/reference/Rplot021.png
index c8c8a73c..3cd198aa 100644
Binary files a/reference/Rplot021.png and b/reference/Rplot021.png differ
diff --git a/reference/Rplot022.png b/reference/Rplot022.png
index b23f744c..bd105971 100644
Binary files a/reference/Rplot022.png and b/reference/Rplot022.png differ
diff --git a/reference/assessBalance-1.png b/reference/assessBalance-1.png
index 73a7a51d..dab6a280 100644
Binary files a/reference/assessBalance-1.png and b/reference/assessBalance-1.png differ
diff --git a/reference/assessBalance-10.png b/reference/assessBalance-10.png
index 73a7a51d..dab6a280 100644
Binary files a/reference/assessBalance-10.png and b/reference/assessBalance-10.png differ
diff --git a/reference/assessBalance-11.png b/reference/assessBalance-11.png
index ab6ef19e..08aaa073 100644
Binary files a/reference/assessBalance-11.png and b/reference/assessBalance-11.png differ
diff --git a/reference/assessBalance-12.png b/reference/assessBalance-12.png
index 12c50e45..87ad08d6 100644
Binary files a/reference/assessBalance-12.png and b/reference/assessBalance-12.png differ
diff --git a/reference/assessBalance-13.png b/reference/assessBalance-13.png
index aef5855c..c1d5123b 100644
Binary files a/reference/assessBalance-13.png and b/reference/assessBalance-13.png differ
diff --git a/reference/assessBalance-14.png b/reference/assessBalance-14.png
index e162f2bd..1a7275c1 100644
Binary files a/reference/assessBalance-14.png and b/reference/assessBalance-14.png differ
diff --git a/reference/assessBalance-15.png b/reference/assessBalance-15.png
index 4b0adb2b..9d325f0c 100644
Binary files a/reference/assessBalance-15.png and b/reference/assessBalance-15.png differ
diff --git a/reference/assessBalance-16.png b/reference/assessBalance-16.png
index 4b92b158..85505b10 100644
Binary files a/reference/assessBalance-16.png and b/reference/assessBalance-16.png differ
diff --git a/reference/assessBalance-17.png b/reference/assessBalance-17.png
index d5c5fbbb..54cb8c1f 100644
Binary files a/reference/assessBalance-17.png and b/reference/assessBalance-17.png differ
diff --git a/reference/assessBalance-18.png b/reference/assessBalance-18.png
index bf6e59ec..673e0f37 100644
Binary files a/reference/assessBalance-18.png and b/reference/assessBalance-18.png differ
diff --git a/reference/assessBalance-19.png b/reference/assessBalance-19.png
index 6ce37eb1..58431041 100644
Binary files a/reference/assessBalance-19.png and b/reference/assessBalance-19.png differ
diff --git a/reference/assessBalance-2.png b/reference/assessBalance-2.png
index 2aa75d69..65d38eff 100644
Binary files a/reference/assessBalance-2.png and b/reference/assessBalance-2.png differ
diff --git a/reference/assessBalance-20.png b/reference/assessBalance-20.png
index e0790583..72d1b5e8 100644
Binary files a/reference/assessBalance-20.png and b/reference/assessBalance-20.png differ
diff --git a/reference/assessBalance-21.png b/reference/assessBalance-21.png
index 9b03d897..18ca3122 100644
Binary files a/reference/assessBalance-21.png and b/reference/assessBalance-21.png differ
diff --git a/reference/assessBalance-22.png b/reference/assessBalance-22.png
index 78038c92..6c1c029d 100644
Binary files a/reference/assessBalance-22.png and b/reference/assessBalance-22.png differ
diff --git a/reference/assessBalance-3.png b/reference/assessBalance-3.png
index 12c50e45..87ad08d6 100644
Binary files a/reference/assessBalance-3.png and b/reference/assessBalance-3.png differ
diff --git a/reference/assessBalance-4.png b/reference/assessBalance-4.png
index 80230824..6b963a6b 100644
Binary files a/reference/assessBalance-4.png and b/reference/assessBalance-4.png differ
diff --git a/reference/assessBalance-5.png b/reference/assessBalance-5.png
index 80dd3169..b0cdc120 100644
Binary files a/reference/assessBalance-5.png and b/reference/assessBalance-5.png differ
diff --git a/reference/assessBalance-6.png b/reference/assessBalance-6.png
index 0e2cde05..6133a3aa 100644
Binary files a/reference/assessBalance-6.png and b/reference/assessBalance-6.png differ
diff --git a/reference/assessBalance-7.png b/reference/assessBalance-7.png
index c950e76f..d32f6d00 100644
Binary files a/reference/assessBalance-7.png and b/reference/assessBalance-7.png differ
diff --git a/reference/assessBalance-8.png b/reference/assessBalance-8.png
index c56c36cf..2bfd2df1 100644
Binary files a/reference/assessBalance-8.png and b/reference/assessBalance-8.png differ
diff --git a/reference/assessBalance-9.png b/reference/assessBalance-9.png
index f2f11f97..c223bbac 100644
Binary files a/reference/assessBalance-9.png and b/reference/assessBalance-9.png differ
diff --git a/reference/assessBalance.html b/reference/assessBalance.html
index 31de8efc..b95c6c31 100644
--- a/reference/assessBalance.html
+++ b/reference/assessBalance.html
@@ -181,17 +181,17 @@