Hi all,
I have 3 data vectors read in iml which are
I want to mark these data by following discipline:
How can I do? Thank you!
You can use essentially the same syntax to construct Q like this:
lab = choose(k<k0,'put','mix');
lab = choose(k>k0,'call',lab);
Q = choose(k<k0, p, (p+c)/2);
Q = choose(k>k0, c, Q);
print k0 k lab p c Q;
I think this will work
lab = choose(k<k0,'put','mix');
lab = choose(k>k0,'call',lab);
print k0 k lab;
however you may need to screen missing values out first if you have them.
You can use essentially the same syntax to construct Q like this:
lab = choose(k<k0,'put','mix');
lab = choose(k>k0,'call',lab);
Q = choose(k<k0, p, (p+c)/2);
Q = choose(k>k0, c, Q);
print k0 k lab p c Q;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.