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

st: Mime-Version: 1.0


From   Amit Khandelwal <[email protected]>
To   [email protected]
Subject   st: Mime-Version: 1.0
Date   Thu, 5 Aug 2004 13:04:40 -0400

Hello,

I am new to the Stata programming world (I want to switch from
Matlab). I want to program the following equation (in TeX notation)

ln q_{ijt} = (1-s)*ln(b_{i}) - ln P_{jt} - s*ln(prices) + ln(gdp) + error

where P_{jt}=\sum_{i}[b_{i}p_{it}]^{1-s}

My data is q, prices and gdp. t is a time subscript, i is a sender and
j is a receiver. So, q_{ijt} is the amount sent by i to j at time t.
Since each reciever j receives from many i's, I need some way to sum
over the i's. I am clueless as to how to code this. I was able to
follow the examples in the nl help, but have no idea how to extend to
this problem. Any ideas would be greatly appreciated.

Thanks!
Amit
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index