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

st: re: retruned r(198) in nlsur

From   Kit Baum <>
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   |
An Introduction to Stata Programming   |
An Introduction to Modern Econometrics Using Stata   |

*   For searches and help try:

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