我正在研究一个excel数据集,我有两个变量 -
1)一次花费
2)分期支出。
现在,这两个变量下的观察包含4种可能性。
A - 一次花费> 0,分期花费= 0
B - 一次支出= 0,分期支出> 0
C - 一次消费= 0,分期支出= 0
D - 一次花费> 0,分期花费> 0。
我想创建一个名为Spend type的新变量,它可以基于对Spend进行分类
A-Onetime花费,
B-Installment花费,
C-No Spend,
D-Both一次性和分期付款。
任何人都可以帮我在excel中创建这个新变量吗?