Dear All,
I am trying to make a frequency plot of my variables.
I have found good suggestions on the Web, however I don't have
understood very well how to program and how to create my personal ado.
file in Stata.
I have found this example to create an ado file, in the Stata FAQ
section: http://www.stata.com/support/faqs/graphics/freqplot.html
-----------------------------------------freqplot.ado
program define freqplot
version 7.0
syntax varlist(max=1)
tempvar
qui egen `y' = group(`varlist')
qui sum `y'
local x = int(r(max)) - int(r(min)) + 1
graph `varlist', histogram freq bin(`x')
end
-----------------------------------------freqplot.ado
However, I don't know how to reproduce it by myself.
Could you please explain me how to do?
Thank you very much.
Best regards,
Katia
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/