Skip to content

Assoc graph weights#21

Merged
friendly merged 5 commits intomasterfrom
assoc_graph-weights
Feb 12, 2026
Merged

Assoc graph weights#21
friendly merged 5 commits intomasterfrom
assoc_graph-weights

Conversation

@friendly
Copy link
Owner

Add edge weights (measure parameter) to assoc_graph

Summary

  • Add measure parameter to assoc_graph.glm() with options "chisq" (partial chi-squared / deviance change) and
    "cramer" (Cramer's V from marginal 2-way tables)
  • Edge weights stored as E(g)$weight, flowing through to all result types (igraph, matrix, edge_list)
  • plot.assoc_graph() automatically scales edge width from weights; edge.label = TRUE displays values
  • print.assoc_graph() shows weights inline with edges
  • Update DaytonSurvey examples to use 3 variable groups (separating alcohol as conditioning variable) and
    layout_nicely
  • Add test/demo script dev/assoc-weights-test.R

friendly and others added 5 commits February 10, 2026 18:52
Add measure parameter with "chisq" (partial chi-squared via deviance
change) and "cramer" (Cramer's V from marginal tables) options for
computing edge weights in association graphs. Weights are supported
across all result types (igraph, matrix, edge_list) and displayed
in print output. Also fix pre-existing typo assoc_SRaph -> assoc_graph
in examples.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@friendly friendly merged commit 0b044df into master Feb 12, 2026
1 check passed
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.

1 participant

Comments