[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Newson, Roger B" <r.newson@imperial.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: Gamma functions in R and Stata's Gamma Functions |

Date |
Fri, 7 Mar 2008 18:40:35 -0000 |

I do not think there is any need to invoke R from within Stata to calculate incomplete gamma functions. If you type, in Stata, whelp density functions then you will get the Stata online help for density and distribution functions. This documents the function gammap(), which is Stata's implementation of the incomplete gamma function. And if you type, in Stata, whelp functions then you will get the on-line help for many other functions available within Stata. I hope this helps. Roger Roger B Newson Lecturer in Medical Statistics Respiratory Epidemiology and Public Health Group National Heart and Lung Institute Imperial College London Royal Brompton campus Room 33, Emmanuel Kaye Building 1B Manresa Road London SW3 6LR UNITED KINGDOM Tel: +44 (0)20 7352 8121 ext 3381 Fax: +44 (0)20 7351 8322 Email: r.newson@imperial.ac.uk Web page: www.imperial.ac.uk/nhli/r.newson/ Departmental Web page: http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop genetics/reph/ Opinions expressed are those of the author, not of the institution. -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Vladimir Vakhitov Sent: 07 March 2008 17:57 To: statalist@hsphsun2.harvard.edu Subject: Re: st: Gamma functions in R and Stata's Gamma Functions I found a Stata program that can execute R code from within Stata. Try -findit rsource-. Vladimir 2008/3/7, tiago.pereira@incor.usp.br <tiago.pereira@incor.usp.br>: > Dear All, > > I am trying to implement a test that requires the incomplete gamma function. > > The R code is given by > > example<- pgamma(Z, shape=X,rate=Y) > > where Z is the critical value for a chi^2 distribution. I am not very > experienced with this distribution, and failed to find out the > corresponding counterpart in Stata. Hence, would it be possivle to you to > provide me some tips to implement it in Stata? > > Thanks in advance for your time. > > Tiago > > > > * > * 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/ > -- __________________ Volodymyr Vakhitov vvakhitov@gmail.com * * 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/ * * 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/

**References**:**st: Gamma functions in R and Stata's Gamma Functions***From:*tiago.pereira@incor.usp.br

**Re: st: Gamma functions in R and Stata's Gamma Functions***From:*"Vladimir Vakhitov" <vvakhitov@gmail.com>

- Prev by Date:
**[no subject]** - Next by Date:
**st: RE: Gamma functions in R and Stata's Gamma Functions** - Previous by thread:
**Re: st: Gamma functions in R and Stata's Gamma Functions** - Next by thread:
**st: R: Gamma functions in R and Stata's Gamma Functions** - Index(es):

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