[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Thomas Speidel <thomas@tmbx.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: Computing and allocating time intervals in a wide dataset |

Date |
Mon, 08 Jun 2009 15:25:21 -0600 |

id activity start stop 1 1 6 15 1 2 22 25 1 3 15 16 1 4 22 28 1 5 30 . 1 6 . . 2 1 53 69 2 2 69 79 I am trying to derive the following:

The age groups are: [0.5, 17.5] [17.6, 24.5] [24.6, 44.5] [44.6, 64.5] [64.6, 81]

This is what the dataset above would look like:

I would appreciate any feedback on how to best tackle this problem. Thanks, Thomas Speidel * * 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/

**Follow-Ups**:**st: RE: Computing and allocating time intervals in a wide dataset***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**st: AW: Computing and allocating time intervals in a wide dataset***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**st: RE: data** - Next by Date:
**st: AW: Computing and allocating time intervals in a wide dataset** - Previous by thread:
**st: data** - Next by thread:
**st: AW: Computing and allocating time intervals in a wide dataset** - Index(es):

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