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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1447 views
  • 0 likes
  • 2 in conversation