Learn R Programming

caseMatch (version 1.1.0)

caseMatch-package: A package for using matching to select cases from a quantitative data set for further qualitative analysis.

Description

This package uses statistical matching to identify "most similar" cases in a quantitative data set for subsequent qualitative analysis. Unlike existing matching packages, this package intended to meet some specific needs of analysts using matching for case studies.

Arguments

Author

Maintainer: Rich Nielsen <rnielsen@mit.edu>

Details

Use the case.match function.

References

Nielsen, Richard. 2016. "Case Selection via Matching," Sociological Methods and Research, 45 (3): 569-597. http://journals.sagepub.com/doi/abs/10.1177/0049124114547054

See Also

case.match

Examples

Run this code

data(EU)
mvars <- c("socialist","rgdpc","FHc","FHp","trade")
dropvars <- c("countryname","population")

## In this example, I subset to the first 40 obs. to cut run-time
out <- case.match(data=EU[1:40,], id.var="countryname", leaveout.vars=dropvars,
             distance="mahalanobis", case.N=2, greedy.match="pareto", 
             number.of.matches.to.return=10,
             treatment.var="eu", max.variance=TRUE)
out$cases

Run the code above in your browser using DataLab