Statalist


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

st: re: user-written commands and vce() support


From   Kit Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: re: user-written commands and vce() support
Date   Wed, 11 Jun 2008 19:39:39 -0400

< >

Richard wrote:

One of the things that impresses me about Stata is that it is easy to
write ml programs for it that support all sorts of options (including
many that I have no idea what they do!) Anyway, one of my programs
is called oglm (available from SSC), and the following two commands both work:

oglm warm yr89 male, vce(oim)
oglm warm yr89 male, vce(robust)

Alas, the following does not:

. oglm warm yr89 male, vce(bootstrap)
vcetype 'bootstrap' not allowed

So, my question is, what do I need to do to tweak my programs to
support more of the vce options?
I don't explicitly define vce as an option in my program. Instead,
the option gets captured by this command:

mlopts ml_options, `options'

Is mlopts letting some vce options through while blocking others?



help mlopts says

mlopts is required and will contain those options that the ml command recognizes as maximize
options. Options returned in mlopts are

trace gradient hessian showstep technique(algorithm_specs) vce(oim|opg|robust)
...

and does not list vce(bootstrap) as one of the choices.

Kit


Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


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




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