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;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.