MétaCan
Menu
Back to cohort
Record W2547225625 · doi:10.1097/ede.0000000000000586

An R Package for G-estimation of Structural Nested Mean Models

2016· letter· en· W2547225625 on OpenAlexaffabout
Michael P. Wallace, Erica E. M. Moodie, David A. Stephens

Bibliographic record

VenueEpidemiology · 2016
Typeletter
Languageen
FieldMathematics
TopicAdvanced Causal Inference Techniques
Canadian institutionsMcGill UniversityMcGill University Health Centre
FundersNational Heart, Lung, and Blood Institute
KeywordsConfoundingNested case-control studyStatisticsEstimationStructural equation modelingNested set modelR packageEconometricsComputer scienceGeneralized estimating equationRandom effects modelMathematicsMedicineConfidence intervalData miningMeta-analysisInternal medicineEngineering

Abstract

fetched live from OpenAlex

To the Editor: Structural nested mean models are a useful tool when estimating the effect of time-varying treatments, a challenge made more difficult by the presence of treatment-dependent confounders. We consider the situation where data are measured on, and a treatment assigned to, subjects at a number of distinct time points (or stages). We wish to identify the effect of treatment at each stage on a final (continuous) outcome, when all time-varying confounders are correctly measured, with each treatment’s effect characterized by a structural nested mean model. For example, consider a study of the effect of activity level (the treatment) on blood pressure (the outcome), with data collected by repeated questionnaires over time. We might expect activity level to be associated with blood pressure, but other factors such as age or body mass index may interact with treatment, potentially obfuscating its effect. A structural nested mean model to model the treatment effect may take such interactions into account. G-estimation1 is an estimating equation-based approach used to estimate the parameters of structural nested mean models (but has wider applications). Despite theoretical advantages over alternative approaches,2–5 it has seen relatively little use, thanks to its typically strongly theoretical presentation and challenging implementation. We have therefore derived simplified theory, reducing G-estimation to straightforward matrix equations, and produced an accompanying R package DTRreg.6 Theoretical details are included as Supplementary Material (https://links.lww.com/EDE/B132). We demonstrate G-estimation and DTRreg with a simulation study; a real data analysis is included in the Supplementary Material (https://links.lww.com/EDE/B133). We consider a three-stage example with binary treatments at stages 1 and 3, continuous treatment at stage 2, and treatment–covariate interaction: Stage 1. Covariate: ; treatment: ; Stage 2. Covariate: ; treatment: ; Stage 3. Covariate: ; treatment: ; and Outcome: where for simplicity, we set all parameters equal to 1. Treatment effects are therefore characterized by structural nested mean models , and we seek estimates for and , so that the effect of assigning a patient with covariate the treatment aj is estimated by . In addition, at each stage, we consider a treatment-free model, characterizing the expected outcome assuming no treatment (aj = 0) at that and all subsequent stages (denoted Gj): Stage 1: ; Stage 2: ; and Stage 3: . Our final component is the treatment model: the expected value of treatment given prior information. At stages 1 and 3 (binary treatment), we estimate this via logistic regression, at stage 2 (continuous treatment), we use linear regression. G-estimation for such an analysis boasts the double-robustness property: our structural nested mean model parameter estimators at each stage are consistent if at least one of the treatment or treatment-free models is correctly specified. To demonstrate, we conduct our analysis with a misspecified treatment-free model at stage 3, a misspecified treatment model at stage 2, and both models misspecified at stage 1. Misspecification is achieved by omitting all covariates from the affected models. Stage 1 (both misspecified). Treatment: (fit by logistic regression) Treatment-free: ; Stage 2 (treatment model misspecified). Treatment: (fit by linear regression) Treatment-free: ; Stage 3 (treatment-free model misspecified). Treatment: (fit by logistic regression) Treatment-free: . We can estimate the structural nested mean model parameters at each stage in a step-by-step fashion, either manually through matrix equations (eAppendix; https://links.lww.com/EDE/B134), or through our R package (Figure). Analyzing 1,000 datasets of size n = 1,000, we obtain mean estimates , , and at stages 1, 2, and 3, respectively. As expected, the estimators appear consistent when either the treatment or treatment-free model was correctly specified (stages 2 and 3), but not when both were misspecified (stage 1). Inference may be pursued by either the bootstrap or sandwich-based approaches.FIGURE: G-estimation using our R command (for full details see eAppendix [https://links.lww.com/EDE/B134]; note that “blip” is an alternate name for our structural nested mean model).Structural nested mean models are a valuable, but underused, alternative to more established modeling techniques, with G-estimation one approach for parameter estimation within this framework. Through simplified theory, or our computational routine, G-estimation may be implemented with ease, and we encourage practitioners to consider its use in future analyses. ACKNOWLEDGMENT The authors thank the National Heart, Lung, and Blood Institute for allowing access to data from the Honolulu Heart Program. Michael P. Wallace Erica E. M. Moodie Department of Epidemiology, Biostatistics and Occupational Health McGill University Montreal, QC, Canada [email protected] David A. Stephens Department of Mathematics and Statistics McGill University Montreal, QC, Canada

Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.

How this classification was reachedexpand

Full frame machine prediction

Teacher imitation

Not calibrated prevalence, not ground truth. Human validation pending. The Gemma side is a direct model label for every work in the frame, read from the title-only record. The Codex side is a classifier learned from the 10,348 direct Codex labels and calibrated to design-weighted sample rates; fields without enough sample support carry no Codex call. Candidate is the union of the two sides; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels.

metaresearch head score (Codex)0.017
metaresearch head score (Gemma)0.137
Version: metacan-v3-hybrid-931329e0061cValidation status: machine_predicted_unvalidated
Candidate categoriesnone
Consensus categoriesnone
DomainCandidate signal: none · Consensus signal: none
Study designCandidate signal: Not applicable · Consensus signal: Not applicable
GenreCandidate signal: Software · Consensus signal: none
Teacher disagreement score0.205
Threshold uncertainty score0.685

Distilled classifier scores by category (both heads)

CategoryCodexGemma
Metaresearch0.0170.137
Meta-epidemiology (narrow)0.0040.003
Meta-epidemiology (broad)0.0030.004
Bibliometrics0.0030.004
Science and technology studies0.0010.002
Scholarly communication0.0040.003
Open science0.0060.004
Research integrity0.0030.007
Insufficient payload (model declined to judge)0.2050.090

Machine scores (provisional)

The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.

Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.

Opus teacher head0.341
GPT teacher head0.487
Teacher spread0.146 · how far apart the two teachers sit on this one work
Validation statusscore_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from it

Classification

machine, unvalidated

Machine predicted; a candidate call from one source (direct Gemma or distilled Codex), not a consensus.

The models applied no category: nothing in the taxonomy fit this work.
Study designNot applicable
Domainnot available
GenreSoftware

How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".

Quick stats

Citations16
Published2016
Admission routes2
Has abstractyes

Explore more

Same venueEpidemiologySame topicAdvanced Causal Inference TechniquesFrench-language works237,207