Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <n.j.cox@durham.ac.uk> |
To | "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: Use of data originating from SPSS |
Date | Wed, 1 Feb 2012 17:31:38 +0000 |
I don't use SPSS but you should check which variables are regarded as string by Stata. -describe- or -varm- will tell you this. You may need to -encode- or -destring- some variables. Nick n.j.cox@durham.ac.uk Margaret MacDougall 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? * * 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/