I know how to define the first function, like
start f(x);
a=x[1];b=x[2];c=x[3];
f1=a complex expression involving a,b and c;
return(f1);
finish f;
What if I want to define another function g(z), where z=(x[1],x[2]) a subvector of x, such that g(z)=f(x[1],x[2],x[3]=4)? Is there a simple way to do it in IML? Thanks.
start f1(a,b,c);
finish f1;
return( f1(x[1], x[2], x[3]) );
start g(x);
return( f1(x[1], x[2], 4) );
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Submit your idea!
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.