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

From |
Markus Hilmar Hahn <mhahn@unimelb.edu.au> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
RE: st: AW: Re: Class programming in stata. |

Date |
Fri, 15 May 2009 10:11:12 +1000 |

I have used class programming before. Stata's implementation is a rather simple one as far as I remember. You get the basic principles of object orientation - that's it. Before I started using it, I just read Stata's help text about class programming. I have to admit however that I had some experience with other programming languages. A tutorial would have been good at that point, but for me I cannot see the point in class programming in Stata anymore. When I am doing data management I am using exclusivly (what I call) Stata's basic language. When I have to do some more classical programming I am using Mata. Class programming is set up on top of Stata's language, so for me it is not useful for doing data management. Class programming is however useful when you are programming your own graphs. What I WOULD like however is a class implementation for Mata. You have stucts but that's not the same... I suggest that you are reading a basic tutorial about class programming and then try to implement simple stuff in Stata using the knowledge of the help text / manual. Cheers Markus -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Amadou DIALLO Sent: Thursday, 14 May 2009 11:19 PM To: statalist@hsphsun2.harvard.edu Subject: Re: st: AW: Re: Class programming in stata. "I do not understand this criticism. Baum(2009) http://www.stata-press.com/books/isp.html is an introduction to "Stata Programming", and only 2 of its chapters are devoted to -mata-. So in a way, this publication is complimentary to the [P] manual, and provides exactly the kind of step-by-step introduction to programming that you demand. In combination, these two are unbeatable, IMHO." Martin, It is not a criticism but rather a wish or a suggestion. The fact that isp "complements" [P] illustrates what I am saying. Provided [P] were more detailed and showed step-by-step examples, maybe this will spar many users of buying complementary books or carrying many books in their luggage. Sorry if I focus too much on class programming (I understand the issue) but my question a more general programming concern. Best regards. Amadou. 2009/5/14, Martin Weiss <martin.weiss1@gmx.de>: > > <> > > " It will be very useful if in their programming manuals, at StataCorp, > they took practical examples and developped all the codes from scratch > to end, as did Kit Baum in his books for mata programming" > > > I do not understand this criticism. Baum(2009) > http://www.stata-press.com/books/isp.html is an introduction to "Stata > Programming", and only 2 of its chapters are devoted to -mata-. So in a way, > this publication is complimentary to the [P] manual, and provides exactly > the kind of step-by-step introduction to programming that you demand. In > combination, these two are unbeatable, IMHO. > > The economics of better coverage of the class system have been discussed > before in this thread... > > > HTH > Martin > > -----Ursprüngliche Nachricht----- > Von: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Amadou DIALLO > Gesendet: Donnerstag, 14. Mai 2009 14:39 > An: statalist@hsphsun2.harvard.edu > Betreff: st: Re: Class programming in stata. > > Message not gone through. Resending... > > > > ---------------- > > Hi, > > Nick, Marteen, many thanks for your answers. I wish someone with extended > knowledge on the topic (Nick, Zurab, Araar, statacorp staff, ???) could > write some tutorials on the subject. I need it to start a new project > and I've realized that I need to go through class programming (as in > the case of adept or dasp). > > As I said, I get really frustrated when I tried official stata's class > programming examples (a search through the list shows me that this > issue has been already raised and solved). > > It will be very useful if in their programming manuals, at StataCorp, > they took practical examples and developped all the codes from scratch > to end, as did Kit Baum in his books for mata programming (I've > learned better mata programming with his book than the Mata official > manual I've bought two years ago). I know there is the issue of the > volume size, etc., but a manual is precisely there for that, isn't it? > > When I read in many stata manuals something like : > > program > ... > (the rest of your code continues here) > ... > end > > for my part is not very useful or appealling and can get the user quickly > discouraged. This is certainly useful for advanced programmers who > need to go straight to what they need, but we the beginners need more > than that. > > This is only my opinion, maybe other users do not feel that way. > > Nice weekend to you all. > > Amadou > > > > --- > > Amadou B. DIALLO, PHD > Development Economist > Director > Center for Research and Training on Adult Education > Mayotte, FRANCE > www.aprosasoma.org > +262639693250 > > > > -- > --- > > Amadou B. DIALLO, PHD > Development Economist > Director, Center for Research and Training on Adult Education > Mayotte, FRANCE > www.aprosasoma.org > +262639693250 > * > * 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/ > -- --- Amadou B. DIALLO, PHD Development Economist Director, Center for Research and Training on Adult Education Mayotte, FRANCE www.aprosasoma.org +262639693250 * * 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/

**Follow-Ups**:**RE: st: AW: Re: Class programming in stata.***From:*"Joseph Coveney" <jcoveney@bigplanet.com>

**References**:**st: Re: Class programming in stata.***From:*Amadou DIALLO <stata.diallo@gmail.com>

**Re: st: AW: Re: Class programming in stata.***From:*Amadou DIALLO <stata.diallo@gmail.com>

- Prev by Date:
**RE: st: Bounded Dependent Variable in Random Intercept Model?** - Next by Date:
**st: Covariates in ANOVAs** - Previous by thread:
**Re: st: AW: Re: Class programming in stata.** - Next by thread:
**RE: st: AW: Re: Class programming in stata.** - Index(es):

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