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

st: RE: nl within another nl


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: nl within another nl
Date   Tue, 26 Nov 2002 15:27:19 -0000

FEIVESON, ALAN
> 
> I am trying to use nl-program#2 within the first part 
> ("query" section) of
> nl-program#1 to obtain first guesses. To my surprise, the 
> nl#2 actually ran
> properly, however something got messed up when I got to the 
> iteration part
> of nl#1. Here are some of the  program statements from 
> Stata's nl routine
> where the error occured. Any clues as to what is messed up 
> or how to get
> around this? Is it because the number of parameters in nl#2 
> is smaller than
> the number in nl#1? 
> 
> - local old_pj = ${``j''}
> invalid syntax
> 
> 
> - - - - - - - - - - -  - - -- - - - - - - - - - - - - -- - 
> - - - - - - - - -
> - - -- - - - - - - - - - -  - - -

This is the message you would get 
if the jth parameter were undefined, 
so that 

$``j'' 

reduces to 

$`' 

Hence my guess is that your guess is a good one. 

Nick 
n.j.cox@durham.ac.uk 

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