BookmarkSubscribeRSS Feed
OceanDream
Fluorite | Level 6

 I am trying to solve two unknown variables with two equations (something similar to Black Scholes model). I constrain the value of T no less than one. However, when I run the code, the values given for T are close to zero for all observations. Anyone could tell me what is wrong with my code??? Much appreciated. 

 

/*proc model data=HAVE noprint out=WANT;
eq.one = (1-PD) - (CDF('NORMAL', (-log(PD)-(s - (delta*delta)/2)*T)/(delta*sqrt(T)))
-PD*exp(s*T)* CDF('NORMAL', (-log(PD)-(s - (delta*delta)/2)*T)/(delta*sqrt(T))- delta*sqrt(T)));
eq.two = delta_E*(1-PD) - delta*CDF('NORMAL', (-log(PD)-(s - (delta*delta)/2)*T)/(delta*sqrt(T)));
bounds t>=1;
solve delta T /solveprint ;
id companyid date pd s delta_e;
run;*/

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 657 views
  • 0 likes
  • 1 in conversation