add robin_mh - #114
Open
clarkliming wants to merge 9 commits into
Open
Conversation
Contributor
Code Coverage SummaryDiff against mainResults for commit: 4e8652a Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Contributor
Unit Test Performance Difference
Additional test case details
Results for commit ff0fd56 ♻️ This comment has been updated with latest results. |
Contributor
Unit Tests Summary 1 files 14 suites 15s ⏱️ Results for commit 4e8652a. ♻️ This comment has been updated with latest results. |
Resolve conflicts in R/RobinCar2-package.R (keep setNames import alongside main's importFrom reorganization) and NEWS.md (move the robin_mh entry under the unreleased 0.2.3.9000 heading rather than the released 0.2.3 section). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`robin_mh()` adjusts for covariates by stratification only, which the `y ~ s1 + s2` formula did not signal: bare RHS terms mean working-model covariates in `robin_lm()`/`robin_glm()`. Keep the grammar, make the semantics explicit, and reject the case it silently mishandled. - Reject continuous analysis strata via `h_mh_assert_strata()`, which would otherwise contribute one stratum per distinct value. Mirrors the `assert_factor()` check the stratified log-rank code already applies. - Document how the randomization scheme enters each analysis function in the `intro` vignette: `robin_lm()`/`robin_glm()` feed a scheme-specific variance correction from the `treatment` formula, so omitting a randomization variable from the model costs precision only, whereas `robin_mh()`/`robin_surv()` condition on the strata directly and have no such correction. - State the direction of that failure, backed by simulation: under `pb` the unstratified standard error is conservative (SE/SD 1.18, 98% coverage), not anti-conservative, and carries no penalty under `sr`. A varying allocation ratio is the one case that biases the estimate. - Add the MH-specific trade-offs to `?robin_mh`: cell sparsity, and the constant-allocation assumption behind `estimand = "ATE"`. - Pin the `y ~ 1` degeneracy in tests: `GR`/`Sato` reproduce the unpooled Wald standard error, `mGR` its `n - 1` variant. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
close #113
implement the robin_mh method