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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: Re: Basic ado question |

Date |
Sat, 21 Feb 2009 00:56:26 +0100 |

<>

HTH Martin _______________________

To: <statalist@hsphsun2.harvard.edu> Sent: Saturday, February 21, 2009 12:42 AM Subject: Re: st: Re: Basic ado question

OK, here is the surrounding results to running with set trace on: CalledPooledModel "1143" "1148" 10 100 0 reg FYR L.FYR L(0/1).DSFinR --------------------------------------------------------------------------- begin xtset --- - version 9.2 - syntax [varlist(numeric max=2 default=none)] [,*] variable NewCompanyNum not found ----------------------------------------------------------------------------- end xtset --- (error occurred while loading CalledPooledModel.ado) CalledPooledModel is the ado and the only place in the ado program where NewCompanyNum is used is in the command xtset NewCompanyNum TradeDateNum so I am still left wondering if the ado processes prior to execution and determines that this variable does not exist and generates the error while loading or something else? TomOn Fri, Feb 20, 2009 at 5:27 PM, Martin Weiss <martin.weiss1@gmx.de>wrote:<>You could make the list`s remote debugging efforts easier by -set traceon-and reporting the area around the error... HTH Martin _______________________----- Original Message ----- From: "Thomas Jacobs"<thomasjacobs@gmail.com>To: "StataList" <statalist@hsphsun2.harvard.edu> Sent: Saturday, February 21, 2009 12:23 AM Subject: st: Basic ado questionI am trying to convert a called do file to an ado with little success. Besides inserting the program line at the top and end line at the bottom, I have made no changes to the working called do version which is executed with a number of arguments passed from the calling program. The error I keep getting is variable NewCompanyNum not found (error occurred while loading CalledPooledModel.ado) without pasting the entire program here, the variable NewCompanyNum is created within the ado itself with the following steps: *Create contiguous variable egen NewCompanyNum = group(CompanyNum) summ NewCompanyNum local Count = r(max) dis `Count' where CompanyNum is a numeric variable assigned to the starting company data well upstream of this program. Is there some restriction on creating a new variable in an ado? Do all the variables it uses have to exist prior to its execution? Thanks for any suggestion anyone might have. Tom -- Thomas Jacobs * * 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/-- Thomas Jacobs * * 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/

**References**:**st: Basic ado question***From:*Thomas Jacobs <thomasjacobs@gmail.com>

**st: Re: Basic ado question***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**Re: st: Re: Basic ado question***From:*Thomas Jacobs <thomasjacobs@gmail.com>

- Prev by Date:
**RE: st: Jackknifing on Stata** - Next by Date:
**RE: st: Re: Basic ado question** - Previous by thread:
**Re: st: Re: Basic ado question** - Next by thread:
**RE: st: Re: Basic ado question** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |