This message that I sent earlier has not made it through to the list;
I therefore re-send it. My apologies, should it appear twice.
Eva
***************************
Jingjing,
Also, take a look at the following line:
> sca1ar `g4l'=`g14'
You want `g41' here, not `g4l' (i.e. the number 1 instead of the
letter l, as in life). With the commands -scalar- and -forvalues- it's the
other way round (you have the number 1 in those commands where
you should have the letter l). See also -help scalar-
and -help forvalues-.
Oh, and I just noticed that your line
> replace `w3' =
`a3'+`g31'*`lnp1'+`g32*`lnp2'+`g33'*`lnp3'+`g34'*`lnp4'+`b3'*(`lnm'-`lnpindex')
still lacks a closing single quote after `g32. You want:
replace `w3' =
`a3'+`g31'*`lnp1'+`g32'*`lnp2'+`g33'*`lnp3'+`g34'*`lnp4'+`b3'*(`lnm'-`lnpindex')
Eva
>
>
>
> 2009/3/15 Kit Baum <[email protected]>:
>> <>
>> The word is s c a L a r. Eva pointed that out quite clearly.
>>
>>
>> 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
>>
>>
>>
>> On Mar 15, 2009, at 02:33 , Jingjing wrote:
>>
>>> sca1ar `a2'=`at'[1,2]
>>> sca1ar `a3'=`at'[1,3]
>>> sca1ar `a4'= 1-`a1'-`a2'-`a3'
>>>
>>> tempname b1 b2 b3
>>> sca1ar `b1'=`at'[1,4]
>>> sca1ar `b2'=`at'[1,5]
>>> sca1ar `b3'=`at'[1,6]
>>
>> etc.
>> *
>
*
* 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/