I would like to compare the distributions of two variables: guess_attain_own_treatment and guess_attain_other_treatment . The variables are available for all individuals in my data set.

I thought I would use a ksmirnof test, but it seems this only accept one variable (and you define a variable that separates observations into groups using , by() ). Is there a way to conduct the test I have in mind? This is what I would like to do:

Code:
 ksmirnov guess_attain_own_treatment guess_attain_other_treatment, exact
But I get r(103) Too many variables specified.