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

Re: st: RE: Reading multiple observations per line


From   Raphael Fraser <[email protected]>
To   [email protected]
Subject   Re: st: RE: Reading multiple observations per line
Date   Thu, 29 Sep 2005 17:56:29 -0500

Can it be done using a dictionary?

On 9/29/05, Nick Cox <[email protected]> wrote:
> . infile str1 sex v1-v3 using fraser.dat
>
> This really is well covered by the online help.
>
> Nick
> [email protected]
>
> Raphael Fraser
>
> > I would like to read a series of variables; group, x, y, and z, where
> > there are several sets of observations per line. Here are some sample
> > lines of data.
> >
> > T 12 22 1478 F 18 20 1278 F 13 28 1077
> > T 11 33 1789 T 17 29 1122 F 19 39 1557
> >
> > How can this be done? I tried using the dictionary but I don't know
> > how to tell Stata that the second observation starts at column 14 and
> > the third starts column 27.
>
> *
> *   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/
>


--
=============================
Raphael A. Fraser, MSc
Assistant Lecturer in Biostatistics
Sickle Cell Unit
Tropical Medicine Research Institute
Faculty of Medical Sciences
University of the West Indies
Kingston
Jamaica

Tel:  (876) 927-2471; 410-4699
Fax: (876) 927-2984
e-mail: [email protected]

*
*   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