Hi statalisters,
I am writing in the forum for the first time but you had been helpful many many times.
I have to distinct variables for the duration (years) of marriage and cohabitation (mdur and cdur) and I want to generate a new variable with the total of the two (total).
I am writing in the forum for the first time but you had been helpful many many times.
I have to distinct variables for the duration (years) of marriage and cohabitation (mdur and cdur) and I want to generate a new variable with the total of the two (total).
Code:
id mdur cdur total 1 . 1 1 1 . 2 2 1 1 . 3 1 2 . 4 2 . 4 4 2 1 . 5 2 2 . 6 3 1 . 1 3 2 . 2 3 3 . 3
Comment