- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 12-05-2011 01:56 PM
(1216 views)
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.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
start f1(a,b,c);
f1=a complex expression involving a,b and c;
return(f1);
finish f1;
start f(x);
return( f1(x[1], x[2], x[3]) );
finish f;
start g(x);
return( f1(x[1], x[2], 4) );
finish f;