Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: SPSS to STATA


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: SPSS to STATA
Date   Sat, 10 Sep 2011 00:53:45 +0100

<non plain text propaganda for sports team removed!>

In Stata 12,

. rename <varlist>, lower

works fine.

In Stata 8, 9, 10, 11 then as Alan recommends you could install
-renvars- from the SJ files and

. renvars <varlist>, lower

or you could call up -rename- within a -foreach- loop.

Nick

On Fri, Sep 9, 2011 at 5:28 PM, Alan Acock <acock@mac.com> wrote:
>
> If you are affiliated in any way with a university that has a Stata Grad plan, you can buy Stat Transfer at a greatly reduced price. Check out
> http://www.stata.com/order/schoollist.html
> When I started using Stata I contacted them because my campus was not part of the grad plan and they made it very simple to join this plan.
> If you are in SPSS and use 'save as' to save a file as a Stata dataset, you might want to check a couple things. The last time I did this, the file was stored inefficiently. You will want to run compress from within Stata. Also, a Stata convention is to keep all variables in lower case. You may want to take advantage of the user written command, renvars, to make all the variable lower case. Others may have observed other problems.
> --Alan
> Alan Acock
> acock@mac.com
>
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index