Statalist


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

st: RE: levpet


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: levpet
Date   Sun, 26 Jul 2009 01:30:45 +0200

<>

http://www.stata.com/statalist/archive/2009-07/msg00739.html



HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Priya Nagaraj
Sent: Sonntag, 26. Juli 2009 01:26
To: [email protected]
Subject: st: levpet

Hello,
 
I am trying to run levpet on my data. This is what I wrote
 
tsset firm year 
set tr on
levpet lnsales, free (lnlabor) proxy (lnfuel) capital (lnk_stock) revenue
i(firm) t(year) reps(50) level(95)
 
This is the error I get with some part of the trace preceeding it.
 
    - capture assert int(`timevar')==`timevar'
            = capture assert int(year)==year
            - if _rc {
              di in red "time variable must contain only integer values"
              exit 451
              }
            - sort `panel' `timevar'
            = sort firm year
            - if "`panel'" != "" {
            = if "firm" != "" {
            - local bypfx "by `panel': "
            = local bypfx "by firm: "
            - }
            - if `"`format'"' != "" {
            = if `"%9.0g"' != "" {
            - format `timevar' `format'
            = format year %9.0g
            - }
            - tempname scdelta
            - mata: _TS_p_delta("`scdelta'", "`delta'", "`timevar'")
            = mata: _TS_p_delta("__00001R", "(__00001Q)", "year")
   _TS_p_delta_getnumb():  3499  strtoreal() not found
 _TS_p_delta_increment():     -  function returned error
           _TS_p_delta():     -  function returned error
                 <istmt>:     -  function returned error
           
----------------------------------------------------------------------------
---------------- end tsset ---
            }
         
----------------------------------------------------------------------------
------------------ end xtset ---
          }
          else {

 Can somebody help me with this. I am not very conversant with Stata. I am
using Stata 10.
 
Thnx
Priya



      

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


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index