BookmarkSubscribeRSS Feed
nickb
Calcite | Level 5
Need code to solve the following equation using Newton-Rhapson for a system of equations in SAS IML?

∑ (t=1)^T (Yj-Xj)/
(1+r)^t -c=0

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.
1 REPLY 1
Paige
Quartz | Level 8
If you have the code in R to do this, why do you need the code in SAS to do this? Can't you just run the R code and get your answer?

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1495 views
  • 0 likes
  • 2 in conversation