Giter Site home page Giter Site logo

Comments (1)

ngreifer avatar ngreifer commented on August 28, 2024

I like the idea of a partial matching by at least one element in a list variable, but I'm not inclined to add that into MatchIt because list variables do not play a clear role in computing a distance metric such as the propensity score difference or Mahalanobis distance and adding support for them would require a complicated restructuring of the code and specialized routines for what is a very uncommon problem. MatchIt is not designed for highly customized matching specifications like the one you described, but you might be able to implement a version of it in Matching or optmatch by manually restricting certain matches.

In Matching, you could use the restrict argument in the call to Match() after computing the restriction matrix, which you would have to do manually by looping through each treated and control unit. In optmatch, you could create a distance matrix using match_on() and then manually set distance between units that do not share a value of the list variable to Inf to prevent them from being matched. You would then supply that matrix to fullmatch() or pairmatch().

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.