Hi Dr. Gidden and helpful TA's,
I have been doing homework 1 and have a few questions:
Question 2. To fix the data, do we need to fix things in excel before importing it or do we do everything to fix the data in SPSS?
- For example, I changed CPSC case number to "ID" and told the stream to "ignore" the "narrative columns." The ones I am having the most difficulty with is the "other race" and "other diagnosis" columns - should we try to recode using the "reclassify" nodes or just ignore them since they are present in such as small amount of the data?
- The other major problem I am having is with the age category. The data coded children under 2 years old starting with 200 and adding one integer for every full month old they were. This greatly skews the data so I added a "derive" and put in the formula:
if Age>200 then (Age-200)/12 else Age endifThis at changed the ages to non-integers that were between 0 and 2, however I did not know what to do with data that were already classified as "0" because the original code used this to designate ages that were missing. I tried to do the "filter" node but couldn't figure out how to get SPSS to ignore 0 values so I ended up deleting the 0 values from the excel sheet and then re-uploading it into SPSS. I assume there is a better way to do this.
Question 5. Data quality issues - when I use the "data audit" node on my finished stream, in the "quailty" tab shows a lot of missing values for things like "sknewness." I am assuming this is because the dataset is large but I was wondering if there is a better way to see the data quality output to answer the question.
Question 5. To answer which variables were related to being admitted or dying, I tried running a "means" node and found that there were differences in ordinal/continuous variables, but could not interpret the specific diagnosis codes since they are nominal data. I also tried running a logistic regression but it was taking a long time, which I figured was because the dataset is moderately sized, but wanted to make sure that was how could answer the question before taking a long time on it.
Thanks!
Nikko