-
Notifications
You must be signed in to change notification settings - Fork 2
Bugfix: unequal allocation #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix: unequal allocation #107
Conversation
…andomization. Also added tests for weights and method (which pass).
…ntr, cyclocomp, pkgdown, roxygen2)
…or patient randomization; quiet R LSP prompt in VSCode
…rsion to 1.0.2 and update references (NEWS, apiVersion, tests, vignette)
- Add font libraries (libfontconfig1-dev, libfreetype6-dev, etc.) for systemfonts - Add image libraries (libpng-dev, libjpeg-dev, libtiff5-dev, etc.) for ragg - Add PKG_CONFIG_PATH export for lint workflow - Fixes CI failures on all workflows after PR #107 merge
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
Caution Review failedThe pull request is closed. WalkthroughCI workflows switch from setup-r-dependencies to setup-renv with explicit R 4.2.3, plus ad-hoc installs for needed R packages. A bug fix updates imbalance calculation in randomize_minimisation_pocock. Version bumped to 1.0.2 with NEWS, API annotation, and references updated. Additional tests validate ratio adherence and error handling. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant API as Plumber API
participant Core as randomize_minimisation_pocock()
participant State as Study State
Client->>API: POST /randomize (covariates, ratio, p)
API->>State: Read current allocations
API->>Core: Compute next arm (state, ratio, p, method)
note over Core: Imbalance computation uses division by ratio[arm]
Core-->>API: Selected arm
API-->>State: Persist assignment
API-->>Client: 200 OK (assigned arm)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (14)
Comment |
What happened:
Summary by CodeRabbit