title: SPSS Matching Case Control 1:n
body: <p>We want to match our cases and controls using SPSS 23.</p>
  
  <p>We already matched our cases and controls on age in a 1:3 ratio and a tolerance of 1 month as followed:</p>
  
  <pre><code>DATASET ACTIVATE DataSet1.
  FUZZY BY=Age SUPPLIERID=Databasenr NEWDEMANDERIDVARS=MatchID1 MatchID2 MatchID3 GROUP=Case FUZZ=1 
  EXACTPRIORITY=TRUE  
  MATCHGROUPVAR=Matchgroupvariable 
  /OPTIONS SAMPLEWITHREPLACEMENT=FALSE MINIMIZEMEMORY=FALSE SHUFFLE=TRUE.
  </code></pre>
  
  <p>Know we have 2 questions:</p>
  
  <ol>
  <li><p>We want to use different tolerances for our cases. For example the cases aged under 1 year should be matched with a tolerance of 1 month and the cases older than 1 year with a tolerance of 6 month. How can we do that?</p></li>
  <li><p>We want to distribute the controles equally on the cases. So we have 60 cases and 300 controles. First we want every case to have a control if possible, than we want to distribute the lasting controles equally on the cases so that every case has at least one and as many as possible controles.  </p></li>
  </ol>
  
  <p>Thanks for your help. </p>