Comments (3)
Hey @sde2ds
Almost.
You can see the code for ipw here:
balance/balance/weighting_methods/ipw.py
Line 506 in 7ad4937
You can think of target (population) as 0 and sample (panel) as 1. In practice, it's creating a 2D array that has weights instead of 1s.
Feel free to open the thread if you have more questions. And also to share any work you do with the package.
from balance.
Hi @talgalili Thanks for your response. In the above reply you mean target as 1 not treatment. Am i right?
Sure, will share some work in coming days
from balance.
Sorry, I wrote the wrong terms in the previous message.
In the context of survey statistics, it's target (or population) and sample (or panel).
In casual inference it's often treatment and control. How to match the terms is your choice.
In 'balance', target is 0 and sample is 1.
(I'll fix my previous message)
from balance.
Related Issues (20)
- Incompatible with Python 3.11 HOT 20
- module 'balance.adjustment' has no attribute 'apply_transformations' HOT 8
- Can't use `method = ipw` in Windows HOT 1
- Can't use `method = "cbps"` (windows, Python 3.10) HOT 8
- When using the RStudio IDE to run Python: Seaborn plots not working HOT 6
- [FEATURE] Migrate from glmnet_python to sklearn HOT 2
- [BUG] libgfortran.so.3: cannot open shared object file when running sample_with_target.adjust(max_de=None) HOT 6
- [BUG] HOT 3
- [BUG] plots in quickstart tutorial are beyond the figure margins
- [BUG] simulation data of target is not the same is sample
- [FEATURE] add kl divergence metrics to covars()
- [FEATURE] Make `balance` API closer to the sklearn syntax
- [FEATURE] Chainging the way Sample take strategy for adjust HOT 1
- [FEATURE] Import the Empirical Calibration package to `adjust`
- [FEATURE] Move from patsy to formulaic
- [FEATURE] Update the printout of an adjusted object to include information about the correction used.
- [FEATURE] Update the printout of adjusted.summary() to include aspects of covars, weights and outcome
- [FEATURE] check (raise warning) if features are provided that lead to all equal weights
- [BUG] rake doesn't support trimming - but also doesn't indicate it to the user HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from balance.