Obtaining minimum maximum output of a macro (function)
问题 I want to find to find extreme values produced by a macro as a function of input parameters: For example purposes here is some data: data Input_data; input X Y; cards; 10 15 20 18 30 27 33 41 ; run; The following is not the actual formula (as the minimum for this is easily found analytically.) and I want computational method. For examples sake I have semi-empirical rule, which takes three parameters in: %macro Function(const1, const2 const3); data output; set input; X_eff1=((X > &const1.)*(X