Code Monkey home page Code Monkey logo

Comments (3)

ngreifer avatar ngreifer commented on September 2, 2024

Basically yes. I'll explain how matching is implemented.

One treated unit at a time, we check which controls are eligible to be matched with that treated unit. If matching without replacement, any previously matched control units are ineligible. If exact matching, any control units not in the same stratum as the treated unit are ineligible. If a caliper is present, any control units outside the caliper are ineligible. What remains is a pool of remaining eligible control units for that treated unit. If that pool is empty, the treated unit does not get a match. If the pool is not empty, the control unit in the pool that is closest to the treated unit gets matched to that treated unit. Then we move on to the next treated unit.

This is the same way matching occurred in the older versions of MatchIt, except that the bolded sentence would read "If the pool is not empty, a randomly selected control unit in the pool gets matched to that treated unit". You can see how the new behavior improves the quality of matches and enhances replicability moving forward.

I'm pretty sure the set of matched controls with a caliper is a subset of the set of matched controls without a caliper, but they will not necessarily be matched to the same treated units.

from matchit.

youblue avatar youblue commented on September 2, 2024

It's great to get confirmation from you. Super helpful!
Thank you so much!

from matchit.

ngreifer avatar ngreifer commented on September 2, 2024

Glad it was helpful! Feel free to ask if anything else comes to mind.

from matchit.

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.