Quantcast

levpet

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

levpet

Sudeshna Pal
I am working with STATA 10 and trying to use the levpet command in the following way:



tsset companyid year
       panel variable:  companyid (strongly balanced)
        time variable:  year, 1989 to 2008
                delta:  1 unit


levpet logsales, free(logpowerfuel loglabor) proxy(logmaterial) capital(logcapital) revenue

and I get the following error:
error #1 occurred in program nllp_bs_gmm
 error . . . . . . . . . . . . . . . . . . . . . . . .  Return code 196
        nl___________ refused query, rc= ___________;
        error # _________ occurred in program nl_________;
        Your nlfunc program did not work properly with the nl command

Any suggestion as to how to solve this?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: levpet

Martin Weiss-5

<>

Have you fully -update-d official Stata and -levpet- (user-written,
obtained via -findit-). This example works well for me:



***********
clear*
set obs 100
gen byte companyid=_n
expand 10
bys companyid: gen int time =_n+1988

tsset companyid time

gen logsales=log(runiform()*10)
gen logpowerfuel=log(runiform()*10)
gen loglabor=log(runiform()*10)
gen logmaterial=log(runiform()*10)
gen logcapital=log(runiform()*10)
gen revenue=log(runiform()*10)

levpet logsales, free(logpowerfuel loglabor)  /*
*/  proxy(logmaterial) capital(logcapital) revenue
***********


HTH
Martin

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Sudeshna Pal
Sent: Freitag, 30. Juli 2010 18:39
To: [hidden email]
Subject: st: levpet

I am working with STATA 10 and trying to use the levpet command in the
following way:



tsset companyid year
       panel variable:  companyid (strongly balanced)
        time variable:  year, 1989 to 2008
                delta:  1 unit


levpet logsales, free(logpowerfuel loglabor) proxy(logmaterial)
capital(logcapital) revenue

and I get the following error:
error #1 occurred in program nllp_bs_gmm
 error . . . . . . . . . . . . . . . . . . . . . . . .  Return code 196
        nl___________ refused query, rc= ___________;
        error # _________ occurred in program nl_________;
        Your nlfunc program did not work properly with the nl command

Any suggestion as to how to solve this?

--
View this message in context:
http://statalist.1588530.n2.nabble.com/levpet-tp5355651p5355651.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: levpet

Sudeshna Pal
In reply to this post by Sudeshna Pal
Updating helped.

It's working now!


Thank you.


Sudeshna.

On Fri, Jul 30, 2010 at 1:13 PM, Martin Weiss <[hidden email]> wrote:

>
> <>
>
> Have you fully -update-d official Stata and -levpet- (user-written,
> obtained via -findit-). This example works well for me:
>
>
>
> ***********
> clear*
> set obs 100
> gen byte companyid=_n
> expand 10
> bys companyid: gen int time =_n+1988
>
> tsset companyid time
>
> gen logsales=log(runiform()*10)
> gen logpowerfuel=log(runiform()*10)
> gen loglabor=log(runiform()*10)
> gen logmaterial=log(runiform()*10)
> gen logcapital=log(runiform()*10)
> gen revenue=log(runiform()*10)
>
> levpet logsales, free(logpowerfuel loglabor)  /*
> */  proxy(logmaterial) capital(logcapital) revenue
> ***********
>
>
> HTH
> Martin
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Sudeshna Pal
> Sent: Freitag, 30. Juli 2010 18:39
> To: [hidden email]
> Subject: st: levpet
>
> I am working with STATA 10 and trying to use the levpet command in the
> following way:
>
>
>
> tsset companyid year
>       panel variable:  companyid (strongly balanced)
>        time variable:  year, 1989 to 2008
>                delta:  1 unit
>
>
> levpet logsales, free(logpowerfuel loglabor) proxy(logmaterial)
> capital(logcapital) revenue
>
> and I get the following error:
> error #1 occurred in program nllp_bs_gmm
>  error . . . . . . . . . . . . . . . . . . . . . . . .  Return code 196
>        nl___________ refused query, rc= ___________;
>        error # _________ occurred in program nl_________;
>        Your nlfunc program did not work properly with the nl command
>
> Any suggestion as to how to solve this?
>
> --
> View this message in context:
> http://statalist.1588530.n2.nabble.com/levpet-tp5355651p5355651.html
> Sent from the Statalist mailing list archive at Nabble.com.
> *
> *   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/
>

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