Giter Site home page Giter Site logo

Comments (3)

talgalili avatar talgalili commented on June 2, 2024

Hey @sde2ds
Almost.
You can see the code for ipw here:

y0 = np.concatenate((np.zeros(sample_n), target_weights * odds))

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.

sde2ds avatar sde2ds commented on June 2, 2024

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.

talgalili avatar talgalili commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.