Programming the statistical procedures from SAS

test the equality of two variables

Reply
Frequent Contributor
Posts: 118

test the equality of two variables

Hello,

I have the distribution of two variables A and B. I want to test the equality of A and B in the percentile 10.

Grand Advisor
Posts: 9,466

Re: test the equality of two variables

May be you should check the fourth example of proc freq .for the Equality Test.

tables hair/binomial (equiv p=.2 margin=.1);

Xia Keshan

Trusted Advisor
Posts: 1,439

Re: test the equality of two variables

I don't see how this answers the question

SAS Employee
Posts: 187

Re: test the equality of two variables

If your purpose is to compare two distributions of a variable is the same across different groups, this can be done using the EDF option in PROC NPAR1WAY.  See the example titled "EDF Statistics and EDF Plot" in the NPAR1WAY documentation.

SAS Super FREQ
Posts: 3,319

Re: test the equality of two variables

Are you trying to assess whether the 10th percentiles of two groups are the same?  Here is a blog (that uses R) that contains some references to the literature: http://freakonometrics.hypotheses.org/4199

Ask a Question
Discussion stats
  • 4 replies
  • 229 views
  • 0 likes
  • 5 in conversation