Can anyone suggest the method for me to me to take logarithm on divided of two observation, e.g. log(VariableX/VariableX[n+1])that like Excel?
Example, =log(A10/A11).
My Constraint is huge amount of data that cannot process in Excel.
In SAS, you can't read the value of the next line... but you can use the value of the previous line.
So in a Data step, compute a new variable, the formula of which will be :
LOG(LAG(X)/X) ;
The LAG function returns the value for variable X on the previously read observation.