I have a variable A and variable B and each has 613 observations. Variable C = A/B.
I want to create variable D within the data step that divides sum total of variable A by sum total of variable B. Yes, variable D will be same value for all 613 observations. I cannot use a macro as a constant because variable D is dependent on the sum of variable A and the sum of variable B.
Ultimately, I will create an index so that variable E=C/D
Anyone have advice?
I want to create variable D within the data step that divides sum total of variable A by sum total of variable B. Yes, variable D will be same value for all 613 observations. I cannot use a macro as a constant because variable D is dependent on the sum of variable A and the sum of variable B.
Ultimately, I will create an index so that variable E=C/D
Anyone have advice?