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

st: Re: tsset in ver 8


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: Re: tsset in ver 8
Date   Mon, 19 May 2003 17:47:02 -0500

----- Original Message ----- 
From: "Joshua Hawley" <[email protected]>
To: <[email protected]>
Sent: Monday, May 19, 2003 8:49 AM
Subject: st: tsset in ver 8


> Does anyone have a strategy to use tsset when the panel var is a string?
> And....the quick solution of translating the variable to numeric will not
> work because the variable has leading zeros.
> 
> Thanks!
> 
> Josh Hawley
> Ohio State
> [email protected]

Try -encode-

encode id, gen(id2)
tsset id2 time

Hope this helps,
Scott


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