caseMatch-package {caseMatch} | R Documentation |
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.
Details
Use the case.match
function.
Author(s)
Maintainer: Rich Nielsen <rnielsen@mit.edu>
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
Examples
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
[Package caseMatch version 1.1.0 Index]