caseMatch-package | R Documentation |
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.
Use the case.match
function.
Maintainer: Rich Nielsen <rnielsen@mit.edu>
Nielsen, Richard. 2016. "Case Selection via Matching," Sociological Methods and Research, 45 (3): 569-597. http://journals.sagepub.com/doi/abs/10.1177/0049124114547054
case.match
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.