Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Any major syntax differences in Stata 13?
From
Stas Kolenikov <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Any major syntax differences in Stata 13?
Date
Wed, 12 Jun 2013 14:23:56 -0500
The biggest change recently in terms of official syntax has been the
introduction of factor variables (in Stata 11, I guess), and that is
one of the things that's difficult to project back. There are lots of
changes under the hood in terms of how "good old" modules work, but
they usually go unnoticeably seamless for the end user. I had to
rework some of my -svy-related code that went looking too deeply into
the guts of how it was implemented around version 9 or 10, and it was
changed completely in version 11 or 12. The ereturn stuff did cause me
some problems, too, as RW noted. But that, of course, is my own
developer issue, as I was using undocumented functionality that Stata
Corp does not guarantee to be stable, unlike the way the official
version control works with my oldest code -- just type version 5 at
the top of your do-file.
-- Stas Kolenikov, PhD, PStat (SSC)
-- Senior Survey Statistician, Abt SRBI
-- Opinions stated in this email are mine only, and do not reflect the
position of my employer
-- http://stas.kolenikov.name
On Wed, Jun 12, 2013 at 12:38 PM, Richard Williams
<[email protected]> wrote:
> Putting stuff like
>
> version 12.1
>
> at the beginning of your scripts further reduces the likelihood of having
> problems. Or, use the version prefix, e.g.
>
> version 12.1: reg y x
>
> In the past, I think some of the biggest problems have been with
> user-written post-estimation commands. They expect ereturned results like
> those from Stata version 9, and then, say, in Stata 12, the ereturned
> results changed. In such instances you'll want to use version control with
> the estimation command.
>
> There have also been things like, say, function names changing, and the old
> name won't work unless you use version control. Or, there will be some tweak
> to the random number seed, and so even if you specify the same seed you
> won't be able to reproduce earlier results unless you use version control.
>
> Whether any of this is happening in Stata 13, I don't know. But when writing
> your own do and ado files, it is a very good idea to include version
> statements just in case something does get changed in a later version of
> Stata. And if you are doing anything that involves generating random
> numbers, explicitly specify the seed if you want to be able to exactly
> reproduce your results later.
>
>
> At 10:14 AM 6/12/2013, Nick Cox wrote:
>>
>> Throughout the history of Stata, there has been extraordinary
>> emphasis on _not_ breaking your previous scripts....
>> Nick
>> [email protected]
>>
>>
>> On 12 June 2013 16:01, Grant, Robert <[email protected]>
>> wrote:
>> > Hi folks
>> >
>> > I am teaching with Stata 12 and expect some students to rush out and get
>> > 13 straight away. Any differences in coding that I should be aware of?
>> >
>> > Robert Grant
>> > Senior Research Fellow in Quantitative Methods
>> > Center for Health & Social Care Research, St George's, University of
>> > London & Kingston University
>> > Honorary Statistician, Princess Alice Hospice, Surrey
>> >
>> > [email protected]
>> > +44 (0)20 8725 0142
>> > http://tinyurl.com/helpwithstats
>> > http://robertgrantstats.wordpress.com
>> > http://www.animatedgraphs.co.uk
>> >
>> > This email has been scanned for all viruses by the MessageLabs Email
>> > Security System.
>> >
>> > *
>> > * For searches and help try:
>> > * http://www.stata.com/help.cgi?search
>> > * http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
>> * http://www.ats.ucla.edu/stat/stata/
>
>
> -------------------------------------------
> Richard Williams, Notre Dame Dept of Sociology
> OFFICE: (574)631-6668, (574)631-6463
> HOME: (574)289-5227
> EMAIL: [email protected]
> WWW: http://www.nd.edu/~rwilliam
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/