Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: use of expand


From   Ann Fitzmaurice <[email protected]>
To   [email protected]
Subject   st: use of expand
Date   Tue, 27 Apr 2004 10:28:18 +0100

Good morning

i have a data set with four variables, year ca age and n, where n is the number of each combination or the other three
e.g.

yeat ca age n
1995 1 13 309
1995 1 14 420
1995 2 13 363

the years can range from 1995-2002, ca from 1-6 and age from 13-19

what i would like to do is to expand the data set that i have one line for each case so for the first line above i would have 309 duplicated lines

i have try using expand but it does not give me the data set i want (i know the total n when expanded)

on another point , is stata8 case sensitive , i tried the following
tab ca - this would not work
but
tab CA would - if stata 8 is case sensitive is it possible to turn it off

regards

ann

------------
Ann Fitzmaurice
Medical Statistician
Dugald Baird Centre for Research on Women's Health
Aberdeen Maternity Hospital
University of Aberdeen
Aberdeen AB25 2ZL
Uk
[email protected]

Tel . 01224 553876

*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index