> I have a variable with seven possible values and I would like to
> recode it into a new variable so 1-3=1-3 and 4-7 = 4. I can do this as
> a one-off creating a new summary variable,
I assume you're creating the new variable with something
(4 thru 7 = 4)
(else=copy) into newvar.
/table = oldvar by newvar.
After a recode like that, I always crosstabulate the old and
new variables just to check that I did the recode correctly.
Also, as Art Kendall has pointed out in the past, it is good
practice to recode INTO a new variable rather than into the
same variable. That way, if you do make an error, it is
easy to fix the problem.
Quote:> but each time I add new
> cases, it seems I have to delete the new summary variable and
> re-create it. Is there any way to tell SPSS that whenever I add a case
> it should calculate a value for the new variable as well (as I could
> in Excel?) I am using SPSS v. 11
The SPSS data window looks somewhat like a spreadsheet, but
does not work the same way. You cannot store formulae in
the cells of an SPSS data file--the results of the
computations are stored there.
If you use the PASTE button instead of OKAY, and save your
work in a syntax file, when new cases are added to the file,
you can simply rerun your syntax to apply the recodes and
computations to the new cases.
> P.S. Are there popular web-based fora where SPSS support also takes
> Thanks in advance for your help.
If you mean other discussion groups, I don't know of any.
If you mean SPSS resources in general, check out Raynald
Some other good sites are listed on my Stats page under
Resources for SPSS Users.