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

From |
Phil Schumm <pschumm@uchicago.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Should be simple yet ... how to write a function? |

Date |
Wed, 18 Feb 2009 04:31:54 -0600 |

On Feb 18, 2009, at 4:03 AM, Fabrice wrote:

Im a pretty advanced Stata user, but have a simple question I cantfigure out: how does one write a *function*, i.e. a program thatreturns a value, and that can be called like local y = fct(x), wherex and y are numbers or strings.

-- Phil * * 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/

**References**:**st: Should be simple yet ... how to write a function?***From:*"Fabrice" <fcaspam@yahoo.fr>

- Prev by Date:
**st: AW: Should be simple yet ... how to write a function?** - Next by Date:
**Re: st: Should be simple yet ... how to write a function?** - Previous by thread:
**st: RE: RE: Should be simple yet ... how to write a function?** - Next by thread:
**Re: st: Should be simple yet ... how to write a function?** - Index(es):

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