Need code to solve the following equation using Newton-Rhapson for a system of equations in SAS IML?
∑ (t=1)^T (Yj-Xj)/
Y is the income stream of the jth student from time, t=1, until the end. X is the income stream of the control group. r is the discount rate or the percentage money declines in value each year.
I have R code to do this but I know very little about R and can’t understand what is going on so any help for SAS will be greatly appreciated. Sorry about the equation. I tried to copy in and the format went nuts.