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

st: Personal ado. files

From   "Katia Bobulova" <[email protected]>
To   [email protected]
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

        program define freqplot
        	version 7.0
        	syntax varlist(max=1)
        	qui egen `y' = group(`varlist')
        	qui sum `y'
        	local x = int(r(max)) - int(r(min)) + 1
        	graph `varlist', histogram freq bin(`x')

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,

*   For searches and help try:

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