Repository navigation
vpc_tte(rtte = TRUE, rtte_calc_diff = TRUE): event order is assigned after sorting gap times, so "order k" is the k-th shortest gap, not the k-th event - #130
Merged
roninsightrx merged 2 commits intoNov 14, 2026
Conversation
With rtte_calc_diff = TRUE, the event index was assigned after re-sorting rows by gap time, so rtte = k was the k-th shortest gap rather than the k-th event. Number events in time order per sim/id first, then take differences without re-sorting. Remove the now-unused relative_times(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
roninsightrx
commented
Nov 14, 2026
roninsightrx
left a comment
Collaborator
Author
There was a problem hiding this comment.
🤖 Codex review, round 1: ✅ approved
Implementation correctly assigns RTTE indices in absolute event-time order before calculating gap times, with gaps grouped by simulation and subject. Tests are appropriate and the full suite passes: 602 passed, 0 failed (5 unrelated existing warnings).
roninsightrx
marked this pull request as ready for review
November 14, 2026 19:29
Resolve conflicts with #128: keep both NEWS entries and both tests. Master already released 1.3.7, so this change moves to 1.3.8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
roninsightrx
commented
Nov 14, 2026
roninsightrx
left a comment
Collaborator
Author
There was a problem hiding this comment.
🤖 Codex review, round 2: ✅ approved
Implementation correctly assigns RTTE order from absolute event time before computing per-simulation, per-subject gaps. Regression coverage is appropriate. Focused tests passed 30/30; full suite passed 608/608 with five unrelated existing warnings.
roninsightrx
deleted the
nightshift/127-vpc-tte-rtte-true-rtte-calc-diff-true
branch
November 14, 2026 19:39
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.
Closes #127
format_vpc_input_data_tte() now numbers rtte events in time order per sim/id before computing gap times, with no re-sort afterwards (relative_times() removed); added regression tests, NEWS entry, and bumped version to 1.3.7.
🤖 Implemented by Claude Code and reviewed by Codex, orchestrated by nightshift. Review rounds are posted as comments below.