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]

st: Use of data originating from SPSS - update


From   Margaret MacDougall <Margaret.MacDougall@ed.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: Use of data originating from SPSS - update
Date   Mon, 06 Feb 2012 22:23:10 +0000

Hello

I grabbed a spare moment to dip into a Stata manual on my journey home from work today and noted that for a logistic regression analysis, Stata requires one of the categories of my dependent variable to assume the value '0'. This pointed to a very simple solution (which worked) while highlighting a necessary change which needs to be made in the transition from SPSS to Stata which I was previously unaware of. Creating a new coding in SPSS for the categories of the dependent variable while saving the modified SPSS file in Stata format did the trick.

Best wishes

Margaret

On 03/02/2012 23:03, Margaret MacDougall wrote:
Thanks, Nick, but as far as codebook is concerned, my data are quite healthy and there is not a missing data issue. Due to other commitments, I have very limited time to spend on this problem. However, I have resolved to try a diffierent trick most days untill I strike gold and to post my main finding to the Stata list users regarding how the issue was resolved.

Best wishes

Margaret


On 02/02/2012 22:15, Nick Cox wrote:
As said, if it's not a problem with variables being (mis)read as string, then it sounds like a problem with missings. Have a look at your data e.g. using -codebook- and opening the Data Editor and see whether and where there are missings and whether they match what is seen by SPSS.

Nick
n.j.cox@durham.ac.uk


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Margaret MacDougall
Sent: 02 February 2012 22:07
To: statalist@hsphsun2.harvard.edu
Cc: MacLennan, Graeme
Subject: Re: st: RE: Use of data originating from SPSS

By way of an update, I have also applied the latest patch so as to
upgrade to SPSS 19.0.0.2 and then re-saved in Stata format using the
SPSS dialogue box. However, this has not eliminated my original error
message pointing to there be "no observations" for my "statistical
calculation".
==

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