Derived valueDerivedReproducible — verified in test
DeSO scaling of neighbourhood shares
Scale an existing DeSO anchor to other years; a scaled value is not observed local statistics.
- Data → operation → output
- Published DeSO share in the reference year and municipal share in selected/reference year; optional age/sex filters. → clamp(DeSO anchor × municipality(year)/municipality(reference year), 0, 100). Outside municipal history Model 1 is used; filters are applied after scaling. → /karta
- Primary sources
- Assumptions
- A constant local relationship to the municipality is an own assumption; the future municipal factor comes from Model 1.
- Observed vs modelled
- Only the unfiltered reference year is exact. Another year or filter is scaled. A missing DeSO anchor returns null; an invalid model denominator returns null.
- Uncertainty
- Scaling can differ greatly from actual local population movements.
- Limitations
- No new DeSO observation is created; shares are bounded to 0–100 percent.
- Scope of validity
- DeSO2018 anchors in available files; src/lib/deso.ts covers Stockholm, Gothenburg and Malmö, desoAll.ts other coverage.
- Reproducibility
- Ratio scaling is tested with a real anchor and missing/invalid inputs.
- Version
- 2.1 · last verified 2026-10-11
- Code/data reference
src/lib/deso.ts