If I run this code:
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.
Also posted on Stackoverflow: http://stackoverflow.com/q/29834523/2766558
Code:
sysuse auto, clear tab rep78 foreign, nofreq row matcell(freqs) matrix list freqs
Also posted on Stackoverflow: http://stackoverflow.com/q/29834523/2766558
Comment