Comments (1)
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)
- optmatch missing from CRAN HOT 2
- Memory allocation problem with method="full" in matchit : Error: (from optmatch) result would exceed 2^31-1 bytes
- weight to initial variable to achieve 100% matching for certain variable
- ratio = 0.5 is not supported HOT 1
- Propensity score weigths & ordinal variables HOT 4
- MatchIt should warn against matching without caliper HOT 1
- Possible Infinite Loop when Exact Matching for Method = 'Nearest' HOT 1
- Errors from using random forest HOT 2
- Error - CEM with NULL in k2k.method HOT 4
- Improve error output of `matchit()` HOT 2
- How larger is the value of caliper by default when the method was set with โnearestโ . HOT 4
- "antiexact" not working as expected HOT 1
- Why is `ratio=2` different from two 1:1 iterations HOT 3
- How does MatchIt calculate Mean for factors/categories? HOT 4
- Interpretation balance statistics HOT 1
- cardinality matching with exact match HOT 2
- What is the meaning of a negative Standardized mean difference (SMD)? HOT 1
- nn table disappeared? HOT 1
- Template matching using gurobi solver with weighted survey data, matching never converge to optimal sollution HOT 1
- Using matchit on data with long format HOT 12
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 matchit.