Hello everyone,
I want to compare the coefficients of Interlocked_breached_firmpre and Interlocked_breached_firmpost across 2 logistic regressions: one with Internal as DV and one with External as DV.
I tried running the below codes:
logit Internal Interlocked_breached_firmpre Interlocked_breached_firmpost
estimates store model1
logit External Interlocked_breached_firmpre Interlocked_breached_firmpost
estimates store model2
suest model1 model2
test [model1] Interlocked_breached_firmpre = [model2] Interlocked_breached_firmpre
test [model1_mean]Interlocked_breached_firmpre = [model2_mean]Interlocked_breached_firmpre
But I keep getting errors on the "test" step.
Could you please provide me with a correct way to determine whether the coefficients are statistically different across the 2 models?
Also, please note that I have industry and year fixed effects.
Your help is highly appreciated!
Christelle
I want to compare the coefficients of Interlocked_breached_firmpre and Interlocked_breached_firmpost across 2 logistic regressions: one with Internal as DV and one with External as DV.
I tried running the below codes:
logit Internal Interlocked_breached_firmpre Interlocked_breached_firmpost
estimates store model1
logit External Interlocked_breached_firmpre Interlocked_breached_firmpost
estimates store model2
suest model1 model2
test [model1] Interlocked_breached_firmpre = [model2] Interlocked_breached_firmpre
test [model1_mean]Interlocked_breached_firmpre = [model2_mean]Interlocked_breached_firmpre
But I keep getting errors on the "test" step.
Could you please provide me with a correct way to determine whether the coefficients are statistically different across the 2 models?
Also, please note that I have industry and year fixed effects.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(Internal External Interlocked_breached_firmpre Interlocked_breached_firmpost) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 1 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 1 0 0 0 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 0 1 1 0 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 1 1 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 end
Your help is highly appreciated!
Christelle
Comment