Monday 8 January 2007

Using TEMPORARY for transforming existing variables

The Temporary transformations remain effective through the first command that reads the data, after which the variables revert to original values. Here is a quick example how to use Temporary.

[Syntax]
DATA LIST FREE /var1 var2.
BEGIN DATA
1 2
3 4
5 6
7 8
9 10
END DATA.
TEMPORARY.
COMPUTE var1 = var1+5.
RECODE var2 (1 thru 5=1) (6 thru 10=2).
FREQ
/VARIABLES = var1 var2
/STATISTICS = MEAN STDDEV MIN MAX.
DESCRIPTIVES
/VARIABLES = var1 var2
/STATISTICS = MEAN STDDEV MIN MAX.
[/Syntax]

2 comments:

Anonymous said...

The TWELVE OCLOCK HIGH
specification includes advanced features, the possibility of viewing different angles of a video stream and simple computations using built-in registers provided by a TWELVE OCLOCK HIGH DVD
player. The TWELVE OCLOCK HIGH DVD COLLECTION
mailing list is a good source for further information.

ugg boots günstig said...

I hope this allowed, I have never used this website before so I wasn’t really sure what this was going to do. true religion jeans So this is just a test post. I really like this forum, it has some excellent discussions that take place.