feat: Add continuous outcomes support for MAIC analysis#208
Open
choxos wants to merge 1 commit intohta-pharma:mainfrom
Open
feat: Add continuous outcomes support for MAIC analysis#208choxos wants to merge 1 commit intohta-pharma:mainfrom
choxos wants to merge 1 commit intohta-pharma:mainfrom
Conversation
This commit implements comprehensive support for continuous outcomes in MAIC (Matching-Adjusted Indirect Comparison) analyses, including both anchored and unanchored comparisons. New Features: - Effect measures: Mean Difference (MD), Standardized Mean Difference (SMD), and Ratio of Means (RoM) - SMD calculation methods: Cohen's d, Hedges' g, and Glass's delta - Helper function get_pseudo_ipd_continuous() to generate pseudo IPD from aggregated continuous outcome data - Helper function lm_makeup() to summarize linear model results - Support for robust standard errors using HC3 estimator - Integration with existing maic_anchored() and maic_unanchored() functions New Datasets: - adlb_sat: Single-arm continuous outcome data (500 subjects) - adlb_twt: Two-arm continuous outcome data (1000 subjects) Documentation: - Comprehensive vignettes for anchored and unanchored continuous analysis - Full documentation for all new functions and datasets - Example scripts demonstrating usage Testing: - 33 new tests covering continuous helper functions and MAIC analyses - All tests pass (174/174 total) - R CMD check passes with no errors or warnings - Integration tests confirm compatibility with existing binary and TTE endpoints Technical Details: - Weighted linear regression using lm() with MAIC weights - Robust covariance estimation via sandwich::vcovHC() - Proper handling of edge cases (zero SD, positive values for RoM) - Consistent USUBJID mapping between outcome and baseline datasets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit implements comprehensive support for continuous outcomes in MAIC (Matching-Adjusted Indirect Comparison) analyses, including both anchored and unanchored comparisons.
New Features:
New Datasets:
Documentation:
Testing:
Technical Details: