title: Fuzzy match for two variables in a dataset
body: <p>How do I do a fuzzy match (approximately 75% match) between two variables in a Stata dataset?</p>
  
  <p>In my example, I am producing <code>Match_yes = 1</code> if the value in <code>Brand_1</code> is present in <code>Brand_2</code>:</p>
  
  <pre><code>**Brand_1    Brand_2    Match_yes**
  Samsung     Samsung         1
  Microsoft   Apple           0
  Apple       Sony            1
  Panasonic   Motorola        0
  Miumiu                      0
  Mottorrola                  1  
  LG                          0
  </code></pre>
  
  <p>How do I get the value <code>Mottorrola</code> under variable <code>Brand_1</code> to produce a <code>Match_yes = 1</code>, as it is 80% similar to the value <code>Motorola</code> in variable <code>Brand_2</code>?</p>