I have a degree in statistics and I'm now working through the SAS base programmer prep paterials. I'm having a hard time interpreting the code in this chapter. As follows: data-work.earn(drop=month); set cert.master; Earned=0; earned+(amount+earned)*(rate/12); earned+(amount+earned)*(rate/12); earned+(amount+earned)*(rate/12); (...) earned+(amount+earned)*(rate/12); run; This code is supposed to calculate the total amount of money (the variable "Earned") at the end of the year given a monthly interest rate. But why isn't "Earned" just zero in this case? What in the code connects the variable "earned" to the expression "earned+(amount+earned)*(rate/12);"?

... View more