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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: RE: Use of data originating from SPSS


From   Margaret MacDougall <Margaret.MacDougall@ed.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Use of data originating from SPSS
Date   Thu, 02 Feb 2012 21:45:23 +0000

Dear Graeme

Thanks for your message. I had already applied the necessary patch to version 19.0.0 of SPSS to convert to version 19.0.0.1. In fact, if you don't apply this patch, you will not be able to obtain a Stata copy of your data, even though there is an SPSS dialogue box which dupes you into thinking you have saved your data successfully in Stata fromat.

With the above patch applied, I would have expected things to have gone more smoothly.

Best wishes

Margaret
On 02/02/2012 07:50, MacLennan, Graeme wrote:

Margaret, in addition to the advice already given, a quick aside. You do not state what version of SPSS you used to save .dta files, but the first release of version 19 had a bug in it which caused problems when translating to .dta.  This was fixed in the first update.  But -usespss- (SSC) gets round any problems.
Regards, Graeme. (A fellow SPSS-to-Stata migrant).

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Margaret MacDougall
Sent: 01 February 2012 17:23
To: statalist@hsphsun2.harvard.edu
Subject: st: Use of data originating from SPSS

Hello

I have recently migrated from SPSS to Stata to allow me to implement fractional polynomial techniques, including the mfp procure, for a logistic regression analysis. I have been able to save the original SPSS file in Stata format. The variables in the SPSS file were of numeric "Type" (in the sense intended by the SPSS Variable View facility) with text labels linked to the numerical codes using the SPSS Value Labels function. On opening up the Stata version of this file, the text labels appear in the individual columns for the dependent and independent variables. When I run the code for identifying the Stata file and running the mfp procedure, the error code r(2000) is generated, pointed to an absence of observations.

Is it possible that I require to reformat the data in some way for the procedure to run successfully? I would be grateful for some handy tips to save some time.

Many thanks

Best wishes

Margaret


--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

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


The University of Aberdeen is a charity registered in Scotland, No SC013683.

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



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Margaret MacDougall
Medical Statistician and Researcher in Education
Centre for Population Health Sciences
University of Edinburgh Medical School
Teviot Place
Edinburgh EH8 9AG

Tel:  +44 (0)131 650 3211
Fax:  +44 (0)131 650 6909
E-mail:  Margaret.MacDougall@ed.ac.uk
http://www.chs.med.ed.ac.uk/cphs/people/staffProfile.php?profile=mmacdoug


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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