Add tutorials and documentation for post-stratification#140
Closed
neuralsorcerer wants to merge 1 commit intofacebookresearch:mainfrom
Closed
Add tutorials and documentation for post-stratification#140neuralsorcerer wants to merge 1 commit intofacebookresearch:mainfrom
neuralsorcerer wants to merge 1 commit intofacebookresearch:mainfrom
Conversation
neuralsorcerer
commented
Nov 12, 2025
|
@talgalili has imported this pull request. If you are a Meta employee, you can view this in D86856112. |
talgalili
pushed a commit
to talgalili/balance
that referenced
this pull request
Nov 12, 2025
…arch#140) Summary: Changes: - Expanded the `poststratify` docstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples. - Added post-stratification examples to the statistical methods page to demonstrate matching single and joint distributions while noting that the method does not revert to raking. - Also published a dedicated post-stratify tutorial notebook and linked it into the tutorials navigation for easy discovery. Why? - Closes facebookresearch#111 Differential Revision: D86856112 Pulled By: talgalili
Contributor
|
I had to copy this PR to another one so that I could split it (for tests to pass). |
talgalili
pushed a commit
to talgalili/balance
that referenced
this pull request
Nov 12, 2025
…arch#141) Summary: Pull Request resolved: facebookresearch#141 Changes: - Expanded the `poststratify` docstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples. - Added post-stratification examples to the statistical methods page to demonstrate matching single and joint distributions while noting that the method does not revert to raking. - Also published a dedicated post-stratify tutorial notebook and linked it into the tutorials navigation for easy discovery. Why? - Closes facebookresearch#111 Pull Request resolved: facebookresearch#140 Differential Revision: D86856112 Pulled By: talgalili
meta-codesync bot
pushed a commit
that referenced
this pull request
Nov 12, 2025
Summary: Pull Request resolved: #141 Changes: - Expanded the `poststratify` docstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples. - Added post-stratification examples to the statistical methods page to demonstrate matching single and joint distributions while noting that the method does not revert to raking. - Also published a dedicated post-stratify tutorial notebook and linked it into the tutorials navigation for easy discovery. Why? - Closes #111 Pull Request resolved: #140 Test Plan: New md page looks like this: {F1983456047} (other pages can't be easily checked) TODO: check pages after diff lands. Differential Revision: D86856112 Pulled By: talgalili fbshipit-source-id: 7d338f5132b41065a3c2e0e306cc1ae4911fdd8d
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.
Changes:
poststratifydocstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples.Why?