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]

Re: st: Re: working with panel data in Stata


From   olorunfemi sola <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Re: working with panel data in Stata
Date   Sat, 17 Mar 2012 10:05:33 +0000 (GMT)

Joseph,
Thank you. Your suggestion worked perfectly.

 
*********************************************************************** 
SOLA OLORUNFEMI   Ph.D
SENIOR LECTURER  
 DEAPARTMENT OF ECONOMICS
ADEKUNLE AJASIN UNIVERSITY 
AKUNGBA AKOKO 
ONDO STATE NIGERIA 
official e-mail: [email protected]
TEL NO +234 803 581 0893 
**********************************************************************


----- Original Message -----
From: Joseph Coveney <[email protected]>
To: [email protected]
Cc: 
Sent: Saturday, 17 March 2012, 1:26
Subject: st: Re: working with panel data in Stata

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?searchhttp://www.stata.com/support/statalist/faqhttp://www.ats.ucla.edu/stat/stata/


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