Z:\to_server\website\mrdcl-learning.com\mrdcl_files\TAB-101\run13.stp
start data,
serial number in columns 1,2,3,
card characters 100,
f=adf,
dw $weight=$9-12,
ds $gender=$5/1,2,
x='Male;
Female',
xt='Gender',
ds $age=$6/1-3,f,
x='Under 35;
36-54;
55+;
Count<c>',
xt='Age',
!
di $price=$7-8,
xt='Cost',
finish data,
start tables,
%unr='Unweighted row<d0>',
!
!This one is unweighted
t#1=$gender * $age,
ft='Unweighted',
!This one is weighted by amount spent
select wq $price,
t#2=$gender * $age,
ft='Weighted by quantity - amount spent',
select wq 1,
!This one is weighted by a respondent weight
select wr $weight,
t#3(f=dpt1)=$gender * $age,
ft='Weighted by respondent weight',
!This one is weighted by respondent weight and by amount spent
select wq $price,
t#4(f=dpt1)=$gender * $age,
ft='Weighted by respondent weight and amount spent',
!Now it is unweighted again
select wr 1,
select wq 1,
t#5=$gender * $age,
ft='Unweighted',
t#6=$age *,
ft='Unweighted',
finish tables,
