Code Monkey home page Code Monkey logo

Comments (3)

ngreifer avatar ngreifer commented on July 28, 2024

Yes, the behavior when using calipers has changed. To replicate old results, you must use an older version of MatchIt. That said, if you did not set a seed when you originally ran the analysis, your results will not replicate anyway.

In the past, matchit() would randomly select one control unit within the caliper of a treated unit. Now, matchit() selects the closest control unit within the caliper of the treated unit, which makes more sense and should yield better matches. Because the old version used a random selection of units, it would be impossible to replicate results without setting a seed prior to calling matchit(). Now, the matched set will be the same every time when a caliper is used. So, even though older results are no longer replicable, the new version improves replicability moving forward and should produce better matches, especially when wider calipers are used.

from matchit.

youblue avatar youblue commented on July 28, 2024

Thank you so much for the clarification!

from matchit.

youblue avatar youblue commented on July 28, 2024

Can I ask a follow-up question?

With the new behavior of caliper, does it mean that the matched controls selected when using caliper are always a subset of those selected without using caliper, given all the other parameters are the same (using method = "nearest")?
Since caliper behaviors only helps to remove those "outliers" but for those matched ones they are always the nearest get selected, there's no randomness any more?

Thank you so much!

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.