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]

From |
Sergiy Radyakin <serjradyakin@gmail.com> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: How to re-program -save9- for Stata 13? |

Date |
Tue, 15 Oct 2013 22:40:03 -0400 |

Jeph, I agree that such version-controlled behavior is reasonably expected, and no, Stata will not save the dataset in the 'pre-previous' format even under version control. Stata N it will save in N-1, but not in N-2 format (format here is specification e.g. 113, not Stata version, e.g. 10). There was also a discussion somewhere in the statalist of why Stata itself does not autodetect the lowest necessary format to store the data without any loss. But for some reason I can't find this thread. Best, Sergiy Radyakin. On Tue, Oct 15, 2013 at 8:53 PM, Nick Cox <njcoxstata@gmail.com> wrote: > Haven't tried it, but I think not. > > 0. Most fundamentally, a switch allowing you to use older code cannot > work because there is no way that the older code could understand > version 13 datasets. Understanding version 9 datasets is necessary but > not sufficient. > > 1. I believe that it would be publicised if it worked. > > 2. The help for -version- does spell out what -version- does, and it > is very selective. > > Nick > njcoxstata@gmail.com > > > On 16 October 2013 01:37, Jeph Herrin <stata@spandrel.net> wrote: >> Given the first FAQ linked to below, one wonders if -version- applies to >> -saveold-? I don't have a way to test it, but in theory one should be able >> to use >> >> . version 10 >> . saveold file >> >> to get a version 9 file, say, from version 13. >> >> J >> >> >> -----Original Message----- >> From: owner-statalist@hsphsun2.harvard.edu >> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Sergiy Radyakin >> Sent: Tuesday, October 15, 2013 8:47 AM >> To: statalist@hsphsun2.harvard.edu >> Subject: Re: st: How to re-program -save9- for Stata 13? >> >> Hello Marco, >> >> could you please explain a bit, why you see a need for such a program? >> If you have Stata 13, this means you can use -saveold- to save in the >> previous version, then following this FAQ all the way until version 5 if >> necessary: >> http://www.stata.com/support/faqs/data-management/save-for-previous-version/ >> >> If you don't have Stata 13, then you use -use13- to load the data into Stata >> 10 or later. >> http://radyakin.org/transfer/use13/use13.htm >> >> >> So I see potential clients as: >> 1) people having Stata 9 and no access to newer versions; >> 2) people having non-Stata software that can read dta format of 9, but not >> newer and the software is not going to be updated, and there is no access to >> Stata 10+ >> >> Regarding 1) I was told the # is pretty small, but I don't know what 'small' >> really is. Regarding 2) I am interested in what is out there (regardless >> whether maintained or not). Can we have a headcount of the programs that >> directly read Stata datasets? Let me start: >> ADePT v.5.50.5001.23617 (supports data from Stata 8 to 13) ADePT Map v2 >> (supports data from Stata 8-11) R (with package foreign) (supports data from >> Stata 5 to 12) SPSS v.15+ (supports data from Stata X?X to 9?) Stat/Transfer >> (supports data from any version of Stata) etc. >> >> Regarding the implementation it is not at all difficult: the current code of >> use13 and use10 contains all the necessary procedures to implement save9 >> which I can do if there is any significant demand. >> >> Best, Sergiy Radyakin >> >> >> >> On Mon, Oct 14, 2013 at 8:54 AM, Marco Ercolani <m.g.ercolani@bham.ac.uk> >> wrote: >>> Dear Statalisters, >>> >>> I am asking for suggestions on how I can re-program -save9- so that it >> will work in Stata 13. >>> In other words, so it will save data in a Stata 9 format from within Stata >> 13. >>> I can think of two possible strategies to achieve this within Stata 13: >>> >>> Strategy 1: Edit the contents of the dataset so they conform to Stata >>> 9 protocols, save the file, then edit the the file header so that it >> appears to have been saved by Stata 9. >>> >>> Strategy 2: Use an existing save facility in Stata 13 that would allow >>> me to impose limits on the data so it respects Stata 9 protocols. Does >> such a save facility exist? >>> >>> Any help on the above two approaches or helpful suggestions for a "third >> way" would be welcome. >>> >>> Marco Ercolani >>> Department of Economics >>> University of Birmingham >>> >>> * >>> * 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/ >> >> * >> * 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/ * * 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/

**References**:**st: How to re-program -save9- for Stata 13?***From:*Marco Ercolani <m.g.ercolani@bham.ac.uk>

**Re: st: How to re-program -save9- for Stata 13?***From:*Sergiy Radyakin <serjradyakin@gmail.com>

**RE: st: How to re-program -save9- for Stata 13?***From:*"Jeph Herrin" <stata@spandrel.net>

**Re: st: How to re-program -save9- for Stata 13?***From:*Nick Cox <njcoxstata@gmail.com>

- Prev by Date:
**Re: st: Negative probabilities after a margins command for a categorical variable (post logistic model).** - Next by Date:
**Re: st: RE: replace values through observations with criterion** - Previous by thread:
**Re: st: How to re-program -save9- for Stata 13?** - Next by thread:
**RE: st: How to re-program -save9- for Stata 13?** - Index(es):