[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Derived variables
From: |
Ben Pfaff |
Subject: |
Re: Derived variables |
Date: |
Tue, 27 Jan 2015 08:24:16 -0800 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Jan 27, 2015 at 09:06:41AM +0000, Mark Gale wrote:
> I am trying to do some analysis of the British Labour Force Survey and
> need to create a derived variable (NETDV- which will be a binary, yes,
> no variable) according to values of other variables (including, AGES=3
> or 4; APPRCUR= 1 etc). I hope to then have a variable where either all
> these characteristics are met or not and use that to create crosstabs
> to show a breakdown by for example region, gender.
That's easy. For example, to create a binary variable B with value 1 if
AGE is 3 or 4 and 0 otherwise:
compute b=age = 3 or age = 4.