Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: command option in ado programming


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: command option in ado programming
Date   Mon, 17 Nov 2003 15:14:23 -0500

Take a look at this FAQ:

http://www.stata.com/support/faqs/lang/syntax.html

"Option 3" can be implemented as:

syntax [, TRanslog1 TRanslog2(string)]

(assuming you want "TR" to be a valid abbreviation for translog. Then, if the user specifies just

mymodel y x1 x2, translog

then the local macro `translog1' will be non-blank.

If they use it as a string, then `translog2' will contain whatever they typed.

-Nick Winter

At 11:24 AM 11/17/2003 -0800, you wrote:

Dear listers,

I want to write an estimation command called "mymodel" for which I
want all of the following syntax permissible:

 (1) mymodel y x1 x2, translog
 (2) mymodel y x1 x2, translog()
 (3) mymodel y x1 x2, translog(homogeneous)

where (1) and (2) estimate the same model, and (3) estimates a
different model.

I know how to make (2) and (3) work:

   syntax varlist [if] [in], TRANSLOG(string)

, but I don't know how to make (1) work side-by-side with (2) and
(3). Any suggestion will be appreciated!

Eddy


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
*
*   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/
--------------------------------------------------------
Nicholas Winter t 607.255.8819
Department of Government f 607.255.4530
308 White Hall [email protected]
Cornell University falcon.arts.cornell.edu/nw53
Ithaca, NY 14853-4601
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index