Hi everyone,
How can I create a variable Y that sums the values of variable X that follow a missing observation?
Example:
Thanks!
How can I create a variable Y that sums the values of variable X that follow a missing observation?
Example:
X | Y |
. | . |
. | . |
1 | 1 |
1 | 2 |
. | . |
. | . |
1 | 1 |
1 | 2 |
1 | 3 |
1 | 4 |
1 | 5 |
. | . |
. | . |
1 | 1 |
1 | 2 |
1 | 3 |
Thanks!
Comment