Matching for Haley's Thesis Data

## Loading required package: MASS
## Warning: package 'optmatch' was built under R version 3.3.2
## The optmatch package has an academic license. Enter relaxinfo() for more information.

Matching Procedure

m.out2 <- matchit(gender2 ~ agecat + edcat + courtref + relastatus,data = newdata,method="optimal",ratio=2,replace=FALSE)

View which participants are in each group

m.out2$match.matrix
##     1     2    
## 158 "69"  "151"
## 159 "76"  "149"
## 160 "26"  "113"
## 161 "67"  "142"
## 162 "57"  "107"
## 163 "66"  "136"
## 164 "65"  "134"
## 165 "72"  "104"
## 166 "84"  "153"
## 167 "59"  "129"
## 168 "144" "152"
## 169 "125" "157"
## 170 "143" "155"
## 171 "111" "154"
## 172 "75"  "80" 
## 173 "56"  "146"
## 174 "110" "132"
## 175 "138" "147"
## 176 "52"  "145"
## 177 "100" "127"
## 178 "119" "141"
## 179 "118" "139"
## 180 "36"  "126"
## 181 "135" "156"
## 182 "10"  "101"
## 183 "140" "148"
## 184 "18"  "97" 
## 185 "30"  "79" 
## 186 "96"  "122"
## 187 "109" "131"
## 188 "78"  "99" 
## 189 "98"  "112"