Could you post your function? I have the same issue you had, and cannot find anything for SAS to allow getting appropriate p-values for weighted data if you, say, multiply the weights by a constant so that the truncation of frequencies in the FREQ does not affect things much. Also, what are n1 and n2 in your function? The sum of the weights in a given class? The number of observations in a given class? Thank you for your help.
... View more