A simple Syntax like this can make your *.sav file coherent, logic and might even help you when you need to locate any cases that does not follow your research pattern.
Here is a fairly simple check:
[Syntax]
DATA LIST FREE
/age gender pregnant.
BEGIN DATA
25 0 0
12 1 0
80 1 1
47 0 0
34 0 1
9 1 1
19 0 0
27 0 1
END DATA.
VALUE LABELS
/gender 0 'male' 1 'female'
/pregnant 0 'No' 1 'Yes'.
COMPUTE valueCheck = 0.
DO IF pregnant = 1.
DO IF gender = 0.
Compute valuecheck = 1.
ELSE IF gender = 1.
DO IF age > 55.
Compute valuecheck = 2.
ELSE IF age <>
Compute valuecheck = 3.
END IF.
END IF.
END IF.
VALUE LABELS valuecheck
0 'NO problems detected'
1 'Male and pregnant'
2 ' age > 55 and pregnant'
3 ' age <>
FREQ variables = valueCheck.
[/Syntax]
Life becomes even more easier when you use this in a script that runs immediately, when you open *.sav file.
Saturday, 6 January 2007
Subscribe to:
Post Comments (Atom)
2 comments:
This article explains how to construct a relatively complex THE FUGITIVE
application, a photo album, with THE FUGITIVE DVD
. We also illustrate the various features that THE FUGITIVE DVD COLLECTION
.
D
They love the classical Burberry scarf, now are, however, in search of a new one? You find with Burberry outlet on-line shop numerous products to the subject Burberry On-line scarf diminished.
Post a Comment