Bookmark and Share

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]

Re: st: erfc function


From   "Heyman, James E." <[email protected]>
To   "<[email protected]>" <[email protected]>
Subject   Re: st: erfc function
Date   Wed, 2 May 2012 13:45:43 +0000

Thanks much.  In retrospect, I would have saved a lot of time going for a bespoke solution rather than searching for a built-in one.



James E. Heyman, PhD
Associate Professor of Marketing
University of St. Thomas
Opus College of Business
1000 LaSalle Ave (TMH443N)
Minneapolis, MN  55403

   ___o
  `\  <,_
@ /  @


On May 2, 2012, at 1:49 AM, Maarten Buis wrote:

--- On Wed, May 2, 2012 at 12:51 AM, Heyman, James E. wrote:
I feel like an idiot for asking but can somebody please tell me where the erfc (complementary error function) is in Stata?

--- On Wed, May 2, 2012 at 2:07 AM, Nick Cox wrote:
Look at e.g.

. twoway function 2 * (1  - normal(x)) , ra(-10 10)

Alternatively:

twoway function 2 * normal(-x) , ra(-10 10)

With this version you are a bit less likely to be bitten by precision
problems, see:

William Gould (2006) Mata Matters: Precision, The Stata Journal, 6(4): 550-560.
<http://www.stata-journal.com/article.html?article=pr0025>

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------
*
*   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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index