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;*/

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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