Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Personal ado. files


From   "Katia Bobulova" <katia.bobulova@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Personal ado. files
Date   Tue, 5 Aug 2008 18:43:48 +0200

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index