Hello,
I'm sorry, I'm new to this kind of analysis, but my boss asked me to analyze the interaction between two variables on a third one.
So the two variables are categorical (wealth and work), and we have to see the impact on a third one which is ordinal categorical (never,..., always).
The problem is that my boss really wants us to do a two-way anova.
It seems to me that an anova is usable only if the Y is continuous, which is not the case.
For me, to do this interaction I would have done a regression like that ologit y x1##x2
My boss gave me an example of a type of anova he wants me to do, can you tell me if this is consistent? I have the impression that it's really bad but he insists a lot.
(that's not my true data)
So here's my data, and here's what he wants me to do :
It's like if he wants to run anova on the logarithm of the number of observations of each category weighted by the variable y (*1 if y==1, *2 if y==2..). He told me he is doing that weight to make y continuous and the log+1 transformation for the homoscedasticity
Is this something that makes sense?
Sorry for this weird question,
Thank you
I'm sorry, I'm new to this kind of analysis, but my boss asked me to analyze the interaction between two variables on a third one.
So the two variables are categorical (wealth and work), and we have to see the impact on a third one which is ordinal categorical (never,..., always).
The problem is that my boss really wants us to do a two-way anova.
It seems to me that an anova is usable only if the Y is continuous, which is not the case.
For me, to do this interaction I would have done a regression like that ologit y x1##x2
My boss gave me an example of a type of anova he wants me to do, can you tell me if this is consistent? I have the impression that it's really bad but he insists a lot.
(that's not my true data)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long(work wealth y) 4 2 1 1 3 2 1 3 2 2 3 2 1 3 2 3 1 3 2 1 3 4 1 3 4 1 3 4 1 3 4 1 3 4 1 3 4 1 3 3 1 3 4 1 3 4 1 3 4 2 3 1 2 3 3 2 3 1 2 3 1 2 3 1 2 3 4 2 3 1 2 3 4 2 3 3 3 3 3 3 3 2 3 3 3 3 3 1 3 3 3 3 3 1 3 3 4 3 3 1 3 3 4 3 3 1 3 3 1 3 3 1 3 3 2 3 3 3 1 4 4 1 4 4 1 4 3 1 4 2 1 4 4 1 4 4 1 4 1 1 4 3 1 4 1 1 4 2 1 4 1 1 4 1 1 4 1 1 4 2 1 4 4 1 4 1 1 4 2 1 4 1 1 4 4 1 4 4 1 4 1 1 4 4 1 4 3 1 4 1 1 4 4 1 4 2 2 4 1 2 4 4 2 4 3 2 4 4 2 4 4 2 4 3 2 4 1 2 4 1 2 4 4 2 4 1 2 4 3 2 4 1 2 4 3 2 4 4 2 4 1 2 4 3 2 4 1 2 4 1 2 4 3 2 4 1 3 4 4 3 4 1 3 4 1 3 4 1 3 4 3 3 4 2 3 4 1 3 4 1 3 4 2 3 4 3 3 4 4 1 5 4 1 5 4 1 5 4 1 5 end label values work activite label def activite 1 "Engineer", modify label def activite 2 "Teacher", modify label def activite 3 "Reseacher", modify label def activite 4 "Tech", modify label values wealth village_groupe label def village_groupe 1 "Cat A", modify label def village_groupe 2 "Cat B", modify label def village_groupe 3 "Cat C", modify label values y peur label def peur 1 "never", modify label def peur 2 "rarely", modify label def peur 3 "sometimes", modify label def peur 4 "often", modify label def peur 5 "always", modify
Code:
contract y work wealth, zero sort work wealth y replace _freq=_freq*y gen ln_freq=ln(_freq+1)/ln(10) anova ln_freq work wealth
Is this something that makes sense?
Sorry for this weird question,
Thank you

Comment