Skip to content

Feature/incidence - #97

Open
rogerssam wants to merge 16 commits into
mainfrom
feature/incidence
Open

Feature/incidence#97
rogerssam wants to merge 16 commits into
mainfrom
feature/incidence

Conversation

@rogerssam

@rogerssam rogerssam commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Adds incidence calculation functions to give details of how often treatments appear in rows or columns (calculate_position_indidence()) or next to other treatments (calculate_pair_incidence()).
Fixes #81
Also possibly addressed in #91

@rogerssam

rogerssam commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

This branch is superseded by functions that already exist, though they're perhaps not as user friendly.

rogerssam and others added 5 commits July 30, 2026 11:04
build_design_matrix() and the calculate_adjacency_score() /
objective_function_piepho() refactors are a separate concern, and the version
carried here was missing the piepho write-back fix, which made it a regression
rather than a fix. That work now lives on bugfix/grid-orientation, rewritten
with coordinate validation and a duplicate-coordinate guard.

R/design_utils.R, R/calculate_adjacency_score.R and R/metrics.R are restored to
main's versions so this branch merges cleanly once that one lands. R/incidence.R
still calls build_design_matrix(), so the branch does not load until then - the
intended sequencing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add incidence function

1 participant