Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Mata code optimization
From
Sergiy Radyakin <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Mata code optimization
Date
Thu, 5 Dec 2013 23:14:24 -0500
Dear All, what is the fastest way to compute the following in Mata?
Z=exp(X*b')
m = y - p'*((1:+Z):/Z)
Perhaps rearranging the terms somehow or any other tricks?
Thank you, Sergiy Radyakin
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/