<>
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/