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

From |
"David Moore" <davem@hartman-group.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: RE: RE: RE: RE: syntax question |

Date |
Tue, 19 Nov 2002 12:23:02 -0800 |

There's at least one thing you can do with the SAS macro programming language that I have found useful. You can create functions. I know egen allows some limited capabilities with respect to new variable generation, but functions are more general. For example, they can be used to calculate or return values in many different programming contexts, not just to create variables. -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Nick Cox Sent: Tuesday, November 19, 2002 10:36 AM To: statalist@hsphsun2.harvard.edu Subject: st: RE: RE: RE: syntax question David Moore > One problem, > however, is that SAS > allows variable arrays and I believe these still do not > exist in Stata. You > can program around this, of course, but that's not a simple > matter of > converting from one language to another. Those with Stata > 7 will benefit > from the "new" looping commands. Those of us who still > can't afford to > upgrade must resort to -while- loops. Stata does not have arrays as such. But see the FAQ http://www.stata.com/support/faqs/data/arrays.html (which predates Stata 7) and add to it the facilities of -foreach- and -forvalues- and then the question -- for those who know both SAS and Stata -- is what can be done easily or with a little effort in SAS which is difficult or impossible in Stata? (The reverse question might interest some people, of course, but is not mine.) Nick n.j.cox@durham.ac.uk * * 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/

**Follow-Ups**:**st: RE: RE: RE: RE: RE: syntax question***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: RE: RE: RE: syntax question***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: RE: table of means** - Next by Date:
**st: RE: RE: RE: RE: RE: syntax question** - Previous by thread:
**st: RE: RE: RE: syntax question** - Next by thread:
**st: RE: RE: RE: RE: RE: syntax question** - Index(es):

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