Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAS Code

Status
Not open for further replies.

Dogss

Technical User
Oct 17, 2006
4
AU
I am trying to understand the following SAS code so that I may try and use it in Visual Basic. The SAS code I am using is

START FLEISHMAN;
X1 = COEF[1]
X2 = COEF[2]
X3 = COEF[3]

F = (X1**2+6*X1*X3+2*X2**2+15*X3**2-1)//
(2*X2*(X1**2+24*X1*X3+105*X3**2+2)-SKWENESS)//
...etc.

I understand that formula however I can not find what COEF[x] is doing.

I think it maybe calling the coefficents of matrix 1, 2 and 3 however I can not find any help on this command in SAS.

If anyone knows what COEF[ ] is, it would be greatly appreciated.

Cheers.
 
Doggs,
What I can make out from your short code snippet is the following:

Start -> this is usually follwed by SAS (IML) code and ends with the 'Finish' keyword.

In between start & finish is where the SAS code lies. In your case the x1 = COEF[1] is probably a reference to an array named 'COEF' and index 1. This could be an array of COEF vars (a stat option) that your program sets before the code that you show here.
Whatever the case, your code sets the var x1 to the value found in that array at position 1.


I hope that I shed some light on your code snippet.
Klaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top