Category: | Special Purpose Functions |
Notes: | INVCDF is a special purpose function that is automatically
provided by the FCMP procedure for your convenience.
If you specify a probability p for
a distribution with CDF denoted by |
function <CDF-function-name> (x, parameter-1, parameter-2, …, parameter-n);
endsub;
cumulative-probability = CDF-function-name(quantile,<parameters>)
proc fcmp library=work.mycdf outlib=work.myquantile.functions; function exp_quantile(cdf, theta, rc); outargs rc; array opts[4] / nosym(0.1 1.0e-8 .); q=invcdf("exp_cdf", opts, cdf, theta); rc=opts[4]; /* return code */ return(q); endsub; quit;
proc fcmp outlib=work.mycdf.functions;
function exp_cdf(x, theta);
return(1.0 - exp(-x/Theta));
endsub;
quit;