When using Proc Univariate to pick out percentiles is there any way to not specify the percentiles by putting in a number but instead putting in a variable name that contains the number of the percentile I'm trying to find? Here's a what I mean in code
I want to say this
proc univariate data=test normal plot;
by t j;
where replicate le 2000 & t=1;
output out=work.BCT1_95lower_y10 pctlpts= lowerlimit_y10
but this doesn't work the pctlpts option appears to only work if you specify the number....
You may be better off with a PROC RANK - rank your variable, then do a second pass with a data step using the same BY groups to subtract the percentile rank from the value of lower_limit. Then OUTPUT the first observation greater than the value in y10_lowerlimit.
Or something like that. Obviously, you're closer to the situation than I am so I cannot make a definitive statement.