Statalist


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

st: re: retruned r(198) in nlsur


From   Kit Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: re: retruned r(198) in nlsur
Date   Fri, 13 Mar 2009 21:44:10 -0400

<>
JJC said

         scalar 'al'='at'[1,1]
         scalar 'ak'='at'[1,2]
         scalar 'am'='at'[1,3]
         scalar 'ae'= 1-'al'-'ak'-'am'

and wonders what might be wrong. These references (and all throughout the program) must dereference macros with the left tick (accent grave) on the left, e.g.

         scalar `al' = `at'[1,1]
         scalar `ak' = `at'[1,2]
         scalar `am' = `at'[1,3]
         scalar `ae' = 1-`al'-`ak'-`am'

Unless the left ticks have been changed to apostrophes (') by the email program, they are invalid syntax.

Kit Baum   |   Boston College Economics and DIW Berlin   |   http://ideas.repec.org/e/pba1.html
An Introduction to Stata Programming   |   http://www.stata-press.com/books/isp.html
An Introduction to Modern Econometrics Using Stata   |   http://www.stata-press.com/books/imeus.html



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