Statalist


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

Re: st: How to write a fast code to obtain a specific calculation


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: How to write a fast code to obtain a specific calculation
Date   Wed, 18 Feb 2009 11:37:26 -0500

Tiago V. Pereira <[email protected]>:
Since you have y=f(x) mapping from R to R and you want to find a zero,
mm_root() is probably the best way to proceed:
http://www.stata.com/statalist/archive/2009-01/msg01140.html
(Mata will also be faster at computing sums etc.).

On Tue, Feb 17, 2009 at 6:53 PM, Tiago V. Pereira
<[email protected]> wrote:
> Dear statalisters,
>
> I usually  need to compute a value X that satifies a specific condition.
>
> A typical example is shown below. But this is only a single example, and
> ordinarily I have similar, but more complex aims.
>
> Hence, I would like to know your expert opinion on how one can make codes
> these kind of codes faster. Perhaps only Mata helps?
*
*   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/



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