turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Newton-Rhapson in SAS IML

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-10-2011 10:26 AM

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.

∑ (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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-10-2011 11:16 AM

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?