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: tsset for panel data with many variables


From   Tetsuji Tanaka <[email protected]>
To   [email protected]
Subject   Re: st: tsset for panel data with many variables
Date   Mon, 04 Nov 2013 12:43:57 -0800 (PST)

Dear all, and thank you for the response, Nick.

I am trying that the STATA recognise my panel data as a panel data.
I made an id variable "case_id" to identify individual data (to avoid data duplication). 
My monthly data variable is written like "200601" "200612" meaning January and December in 2006, respectively.

format monthly_var %tm
tsset case_id monthly_var 

And I got an error message 

=exp required
r(100);

I don't understand what is wrong. 
Please give me ideas to overcome these problems. 

TJ


On Sun, 3 Nov 2013 11:19:04 +0000
Nick Cox <[email protected]> wrote
> You don't give your exact command. Presumably you tried something of the form
> 
> tsset panelid time
> 
> If you omitted a panel identifier variable, that will be problem: such
> a variable is essential. Otherwise see
> 
> http://www.stata.com/support/faqs/data-management/repeated-time-values/
> 
> http://www.stata.com/support/faqs/resources/statalist-faq/#spell
> 
> Nick
> [email protected]
> 
> 
> On 3 November 2013 10:52, Tetsuji Tanaka <[email protected]> wrote:
> 
> > I am an economist and am trying to make the STATA  recognise my panel
> > data of prices as a panel data using the tsset.
> > However, the dataset has many variables and the STATA gave me an error
> > message "repeated time values within panel".
> >
> > My data has monthly time variable, price, region, shop type, shop size
> > etc.
> >
> > Please let me know about how to deal with the problem if you had similar
> > experiences.
> *
> *   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/



-------------------------------------------- 
Tetsuji Tanaka 
PhD, Research Fellow, Lifelong Health Theme
Rowett Institute of Nutrition & Health
University of Aberdeen
Greenburn Road, Bucksburn
Aberdeen, Aberdeenshire
AB21 9SB
United Kingdom
Email: [email protected]
Tel. +44 (0)1224 43 8747 (Rowett) or 
       +44 (0)1224 43 7128 (Polwarth)  
Mobile: +44 (0)750 361 8172

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