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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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