Dear all,
I conducted an experiment where subjects repeatedly set prices. My price variable is quasi-continuous (with 37 possible values). Now I want to compare the distributions
in the two conducted treatments. (Just by eyeballing, the two CDFs look quite different.)
Using Stata 16.1, I thought about using the user-written command clchi2 (part of the cltest package):
If I run
I get an output that makes sense. However, price is not my dichotomous event variable. That is treatment (which takes either 0 or 1).
When I change the order of variables
I receive "too many values".
Do I overthink this (and should go ahead with the first code snippet)? Or is there another command for clustered chi2 tests?
Best,
Andreas
I conducted an experiment where subjects repeatedly set prices. My price variable is quasi-continuous (with 37 possible values). Now I want to compare the distributions
in the two conducted treatments. (Just by eyeballing, the two CDFs look quite different.)
Using Stata 16.1, I thought about using the user-written command clchi2 (part of the cltest package):
If I run
Code:
clchi2 price treatment, cluster(id)
When I change the order of variables
Code:
clchi2 treatment price, cluster(id)
Do I overthink this (and should go ahead with the first code snippet)? Or is there another command for clustered chi2 tests?
Best,
Andreas
Comment