Add tutorials and documentation for post-stratification (#140)#141
Closed
talgalili wants to merge 1 commit intofacebookresearch:mainfrom
Closed
Add tutorials and documentation for post-stratification (#140)#141talgalili wants to merge 1 commit intofacebookresearch:mainfrom
talgalili wants to merge 1 commit intofacebookresearch:mainfrom
Conversation
|
@talgalili has exported this pull request. If you are a Meta employee, you can view the originating Diff in D86856112. |
Contributor
Author
|
I had to copy this PR to another one so that I could split it (for tests to pass). Full credit for this work goes to @neuralsorcerer |
6b48182 to
e6884ef
Compare
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
talgalili
pushed a commit
to talgalili/balance
that referenced
this pull request
Nov 12, 2025
…arch#141) 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
e6884ef to
2a9bbdf
Compare
talgalili
pushed a commit
to talgalili/balance
that referenced
this pull request
Nov 12, 2025
…arch#141) 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
2a9bbdf to
d78bed3
Compare
…arch#141) 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
d78bed3 to
84b9e90
Compare
|
@talgalili merged this pull request in df844ab. |
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.
Summary:
Changes:
poststratifydocstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples.Why?
Differential Revision: D86856112
Pulled By: talgalili