Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Re: working with panel data in Stata


From   "Joseph Coveney" <[email protected]>
To   <[email protected]>
Subject   st: Re: working with panel data in Stata
Date   Sat, 17 Mar 2012 18:26:17 +0900

Try:

encode id, generate(ID) label(IDs)
tsset ID time, yearly

Joseph Coveney

P.S.  You might want to re-read Section 2.3 ("How do I send questions to
Statalist?") of the list's FAQ (URL below).

-----Original Message-----

Am working with panel data. The data are as follows:
id    time    ep    dep    lr
lagos    2000    10    11    12
lagos    2001    8    12    13
lagos    2002    9    9    9
lagos    2003    7    10    12
ondo    2000    10    8    10
ondo    2001    8    12    13
ondo    2002    10    11    14
ondo    2003    7    10    11
ife    2000    9    11    12
ife    2001    8    8    11
ife    2002    9    10    12
ife    2003    10    9    12
But when i give this command --------" tsset id time " it gave the following
error:
  tsset id time
varlist:  id:  string variable not allowed
r(109)
Expecting your assistance.


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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index