SYMPUT puts the macro variable in the most local nonempty symbol table. The first time you run you macro, macro variables are created as local macro variables. %put statement is out of the scope of the macro variable. But when you run your macro the second time, local symbol table is no...
where ln(.) is the natural logarithm. The rationale for this formula is that ln(L0) plays a role analogous to the residual sum of squares in linear regression. Consequently, this formula corresponds to a proportional reduction in “error variance”. It’s sometimes referred to as a “pseudo...
The next step is to create the month field using the SAS Month function: data Trans; set Transaction; Month = month(TransDate); run; Then we accumulate the transactions into a new field to represent the balance in each account: proc sort data = Trans; ...