Hello,
I want to create a new variable which includes 4 age categories in this way:

if (age>=12 && age<32) age1==1

if (age>=32 && age<52) age1==2

if (age>=52 && age<72) age1==3

if (age>=72 && age<100) age1==4

but I get the results only for the first observation.

how can I apply this condition to all observations?

Thanks in advance,

Sigalit.

	[[alternative HTML version deleted]]

