feat: Fay–Herriot measurement-error method for sample-based auxiliaries (Phase 7, v1.1.0)#9
Merged
Merged
Conversation
…iaries (fh-me)
Trimmed Phase 7 (v1.1.0). Adds one new area-level method, fh-me (Ybarra & Lohr,
2008), for auxiliary variables that come from a sample rather than a full census,
plus the inputs, recommender logic, code generation, wizard changes, and docs to
support it. No existing method behaviour changes.
- types: add auxiliaryFromSample/hasAuxiliaryVariances to DataAvailability,
requiresAuxiliaryVariances + mseMethod jackknife to CatalogueEntry,
auxiliaryVarianceVars to UserInputs, and an auxiliary-variance VariableRole
- catalogue: new src/catalogue/fh-me.ts (17 entries); schema test accepts jackknife
- recommender: rank fh-me first for sample-based continuous/proportion targets;
sampling-error caveat on fh-eblup/spatial-fh/robust-fh; blocking caveat on fh-me
when variances are missing; hide fh-me for register auxiliaries
- codegen: {{AUX_VAR_VARIANCES_R}} and {{CI_ARRAY_BUILDER_R}} tokens + emdi fh(method=me)
- wizard: Step 3 auxiliary-source question + follow-up; Step 2 auxiliary-variance
pairing; Step 4 badge + prominent amber caveat; Step 5 variance mapping in summary
- tests: 3 recommender scenarios, fh-me codegen snapshot, Playwright sample-aux flow
- docs: SAE-CATALOGUE.md §7 + tokens, adding-a-method.md, README feature
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Trimmed Phase 7 — Survey-based auxiliary variables (v1.1.0)
Adds one new area-level method,
fh-me— the Fay–Herriot model with measurement error (Ybarra & Lohr, 2008) — for auxiliary variables that come from a large sample (e.g. an agricultural census run as a sample) rather than a full census or register, and therefore carry sampling error. Standard Fay–Herriot assumes auxiliaries are known exactly; FH-ME corrects for that. No existing method's behaviour changes except the recommender/wizard extensions described below.Tag
v1.1.0after merge.🤖 Generated with Claude Code