title: How do I save the relative row or column frequencies after tab twoway in a matrix?
body: <p>If I run this code:</p>
  
  <pre><code>sysuse auto, clear
  tab rep78 foreign, nofreq row matcell(freqs)
  matrix list freqs
  </code></pre>
  
  <p>it's clear that tab only saved the actual counts in each cell, not the frequencies that were calculated and displayed with the nofreq row options. How do I save these relative frequencies in a matrix? I can back them out manually, but since Stata has already calculated them, there should be a way to save them. </p>
  
  <p>Also posted on <a href="http://www.statalist.org/forums/forum/general-stata-discussion/general/1292001-how-do-i-save-the-relative-row-or-column-frequencies-after-tab-twoway-in-a-matrix" rel="nofollow">Statalist</a>.</p>