Skip to content

Worked example on cassava variety trials in Nigeria (repeatability and user groups) - #17

Merged
kauedesousa merged 2 commits into
mainfrom
claude-kauedesousa
Nov 22, 2026
Merged

kauedesousa merged 2 commits into
mainfrom
claude-kauedesousa

Conversation

@kauedesousa

Copy link
Copy Markdown
Member

What this adds

  • Third worked example of are-rankings-repeatable-within-segments. NextGen cassava tricot trials in Nigeria, 30 varieties and 480 valid choices to replant. The pooled ranking has a repeatability of 0 at every sample size. Women farmer-processors reach 0.29 with 200 answers and 0.32 with 215. This is the case the two concept tests could not show.
  • Worked example of do-user-groups-prefer-different-varieties, parts A and B. Processing roles differ pooled over states (p = 0.005) and are at the edge within states (p = 0.08). Model-based clustering finds sex and own processing and no household types.
  • Python port of the user-groups functions (script/other-language/user_groups.py) with checks on synthetic data that reproduce the known answers of the use case.
  • Guidance on covariates with spikes and on counts before model-based clustering, in part B of the user-groups README.

Points for review

  1. The data are not open yet. Both examples say so. They cannot be rerun until the NextGen Nigeria trials are in tricot-data.
  2. The numbers come from Python. The port was not compared with the R functions number by number, and cluster_varsel() in Python reimplements the model of VarSelLCM.
  3. New method guidance. The section on spikes and counts and the note that the fair test should shuffle within sites when a segment is confounded with site are new. They are for the domain leads to confirm.
  4. A qualification of an earlier statement. The repeatability README said that repeatability is the wrong yardstick for a segmentation. The new example states that this holds where the pooled ranking is already stable.

Generated by Claude Code

…lity and user-groups use cases

- Third worked example of are-rankings-repeatable-within-segments: the pooled ranking does not repeat, one segment does
- Worked example of do-user-groups-prefer-different-varieties, parts A and B
- Python port of the user-groups functions with checks on synthetic data
- Guidance on covariates with spikes and on counts before model-based clustering

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LpE9sWLZgMpqciyY5vVH6k
@kauedesousa
kauedesousa merged commit 62c9a58 into main Nov 22, 2026
22 of 26 checks 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.

2 participants