Statalist


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

st: histogram height as avg of another variable


From   "Prashant Loyalka" <presearchwork@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: histogram height as avg of another variable
Date   Wed, 13 Feb 2008 15:19:11 +0800

Hi,

I would like to create histogram(-type) graphs where the baseline axis is
one variable (say x) and the height of each bin is an average of another
variable (say y). The average of the y variable is based on the observation
points within the bin as decided by a set binwidth along x. I would also like
to be able to adjust the bindwidth size (a constant bindwidth size,
i.e.) and the starting point of the bins along the x axis--also so
that each bin can be centered around the midpoint of the binwidth.

Does Stata have this capability? If so, under what commands?

If not, could someone offer some guidance about how to program this?

Thank you!
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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