Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Re: observation-level numerical integration |
Date | Mon, 19 Aug 2013 16:44:23 +0100 |
I think you have to write custom code here. Nick njcoxstata@gmail.com On 19 August 2013 16:38, Liu,Zhong <zhong1969@hotmail.com> wrote: > Dear Nick: > > Sorry that my former reply sent just 10 minutes ago has a mistake. > > If the intergand function is standard normal density function, then the > following is right since 'normal' defined by Stata is Standard Normal > Cumulative Distribution Function > > > gen v3 = normal(v2) - normal(v1) > > However, my integrand is Standard Normal Cumulative Distribution Function > instead. How should I do by using Stata or Mata? > * * 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/