Statalist


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

st: adding count variables


From   "Ann E Fitzmaurice" <a.e.fitzmaurice@abdn.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: adding count variables
Date   Wed, 4 Jul 2007 19:22:31 +0100

Hi 

Have a data set with approx 22500 cases from n families, i want to create a
variable wuich is the number of family members in each family, variable
identification is caseid. The data set includes a second variable denoting
the status of the person  , either alive or dead

What I want to do is to put a variable in the file which denotes the number
within a family for the dead people, for example if there are six siblings,
and 3 are dead , then the first variable will gave a 6 next to each member
and a 3 against each member denoting the number dead within a family




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