Re: EpiData Analysis - Definition of histogram
Good point by Jamie Hockin. We should incorporate into histogram (and epicurve) the ability to define length of interval. Until this is done users can work like this (in the test version) * generate the grouped variable: (age into five year groups) gen i ag = age div 5 labelvalue ag /3="<20" /4="20-24" /5="25-29" /etc ....... (3 because in this example 16 was the minimum age) histogram ag /xa // which will work as desired
Regards Jens Lauritsen
Jens,
This is actually a good solution; I had forgot that the value labels would appear on the graph. In some ways, this provides the general solution.
Thanks, jamie
epidata-list@lists.umanitoba.ca wrote:
Good point by Jamie Hockin. We should incorporate into histogram (and epicurve) the ability to define length of interval. Until this is done users can work like this (in the test version)
- generate the grouped variable: (age into five year groups)
gen i ag = age div 5 labelvalue ag /3="<20" /4="20-24" /5="25-29" /etc ....... (3 because in this example 16 was the minimum age) histogram ag /xa // which will work as desired
Regards Jens Lauritsen
EpiData-list mailing list EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
participants (1)
-
epidata-list@lists.umanitoba.ca