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: Grouping firmid or not to tsset data ?


From   "Abdalla, Ahmed" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Grouping firmid or not to tsset data ?
Date   Mon, 20 Jan 2014 19:03:30 +0000

Dear Statalist
I have a panel id (permno) and two time variables (yr) and (mth) and want to tsset my panel based on permno yr mth
I run:
gen timeid = ym(yr, mth)
gen firmid=group(permno)

tsset firmid timeid
//I get the error message -repeated time values within panel

when I run tsset permno timeid  
//it works properly.

I changed my data set, and used another data set to rule out any problems with my data, however still get the same results !

Can I tsset when only the time variables are grouped in one timeid and the firmid is not grouped ? Is it correct?

Thanks


  
 
 
 
     
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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