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

Re: st: RE: -clemao_io- broken in Stata 9? - Addendum


From   "Michael S. Hanson" <[email protected]>
To   [email protected]
Subject   Re: st: RE: -clemao_io- broken in Stata 9? - Addendum
Date   Thu, 16 Jun 2005 16:40:54 -0400

.

As soon as I sent my reply below, I noticed a private message from Brian Poi of StataCorp suggesting a very similar code change:

local lev `=c(level)'

I don't know enough about Stata syntax to know if this form would be preferred to what I proposed below, namely:

local lev : disp c(level)

(Anyone?) In any event, I wanted to publicly thank Brian for his follow-up support. He also correctly pointed out that all four programs in -clemao_io- will need to be updated for Stata 9. Hence, I have taken the liberty of cc'ing Kit Baum (the author of clem[ai]o[12].ado) on this message. Thanks again to Nick and Brian for their assistance.

-- Mike


On Jun 16, 2005, at 4:29 PM, Michael S. Hanson wrote:


On Jun 16, 2005, at 3:52 PM, Nick Cox wrote:

You could

log using <whatever>
set trace on
...
log close

and send a log to the author.
Otherwise there is no
information on what you're typing
or where Stata stops.
Thanks for the suggestions, Nick. After using -trace- and consulting the User's Guide, I think I have identified the source of the error. Attempting any of the sample programs in -whelp clemao1-, such as below:

webuse wpi1
clemao1 wpi

Yields the previously described "syntax error" for me. The error occurs at the following command:

local lev : set level

which, I have confirmed does return the system settings for the level on Stata 8.2, but a "syntax error" on Stata 9. (I presume this is not platform-specific, but I don't know for sure; I only am able to test on OS X.) After scouring [U], it appears the following command will work in its place:

local lev : disp c(level)

Indeed, after making a local copy of clemao.ado and making the above edits, I get the same results in Stata 8.2 and Stata 9. Is this the preferred command syntax?

The only outstanding question is whether this is a documented change in the behavior of Stata 9, or a "bug". I quickly searched the "What's New" file for changes to -set level- and didn't find anything, although I may have missed them.

Finally, since the author is Kit Baum, I suspect he'll see this message shortly and so I will hold off on contacting him directly for now. Thanks again for your assistance, Nick.

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