Hello,
I want to do effect coding. So I want to compare the different categories of my variables with the mean of the categories, instead of using a reference categorie. I found the xi3 command, but unfortunately it is not possible anymore to use it. Furthermore I found the desmat command, which has the option of using a simple contrast, but therefore you also have to choose a reference category. Do you know a way of using the desmat command to compare the categories to the mean or do you know another command which is suitable for my problem?
Code:
desmat: logit aktiv Migration health=sim(1) education=sim(1) finance=sim(4)
regards,
Fabio
I want to do effect coding. So I want to compare the different categories of my variables with the mean of the categories, instead of using a reference categorie. I found the xi3 command, but unfortunately it is not possible anymore to use it. Furthermore I found the desmat command, which has the option of using a simple contrast, but therefore you also have to choose a reference category. Do you know a way of using the desmat command to compare the categories to the mean or do you know another command which is suitable for my problem?
Code:
desmat: logit aktiv Migration health=sim(1) education=sim(1) finance=sim(4)
regards,
Fabio

Effect coding is just a way of coding categorical variables such that their estimates yield a contrast with the grand mean. I presume these coding schemes first arose prior to development and widespread use of software to fit GLMs, when the only alternative for inference would be to code your own contrast matrix.
Comment