I would like to create new field called Threshold based on the existing Test field. Is it possible to combine 2 code below with out an additional data step?
if test ="NP" then Threshold="> 14.80 = POS" else if test="RB" then Threshold="> 14.64 = POS" else if test="SP" then Threshold="> 19.66 = POS"
proc sql; create table sample_final as select sample, test, conc_calculated format=7.2, count(N) as Total_counts, "" as Threshold, from sample_calcs group by sample, test, conc_calculated, Total_counts ; quit;
Thank you
... View more