Dear Statalisters,
I am testing for the equality of logit regression coefficients across different sub-samples using the -suest- command with -test- and -testnl-.
However, after then -suest- command, I am getting the following error:
var1: factor variable base category conflict
r(198);
Can you please help me identify what I'm doing wrong?
Many thanks,
Mihir
I am testing for the equality of logit regression coefficients across different sub-samples using the -suest- command with -test- and -testnl-.
Code:
foreach subsamp in samp1 samp2 { logit y x i.var1 & `subsamp' est store `subsamp' } suest samp1 samp2, cluster(clustervar) test [samp1_y]x = [samp2_y]x
var1: factor variable base category conflict
r(198);
Can you please help me identify what I'm doing wrong?
Many thanks,
Mihir
Comment