Dear All,
I want to test equality of regression coefficients from to models. My first model is basic wage equation, estimated with OLS (reg command). My second model is estimated wage equation corrected for selectivity, where selectivity is estimated by mlogit (labour market status has three categories). It is user written command selmlog by Bourguignon François, Fournier Martin and Gurgand Marc. Their paper and help file are attached. The problem is that I don't know how to save estimates after selmlog command and to use them with e.g. suest command. If I type estimate store, I get the notification "last estimation results not found, nothing to store".
I tried also to save coefficients as matrix, and then test equality of matrix elements from two matrices, but it does not work.
selmlog wage $employment, sel(labour market status=$selection) dmf(2) mlop(b(3)) showmlogit
matrix list e(b)
mat bsel=e(b)
reg wage $employment
mat bmincer=e(b)
test bmincer[1,1]=bsel[1,1]
I get the following result. It is obvious that something is wrong.
( 1) = .0273823
Constraint 1 dropped
F( 0, 3447) = .
Prob > F = .
Could you please help me.
Best wishes,
Aleksandra
Related Posts with test equality of coefficients from different models estimated by user written commands
Predictions using gologit2 - issues applying coeffcients to validation datasetI'm new to Stata, so apologies in advance if this is a basic question. I am having some issues apply…
Specification of funnel plot with -funnelcompar-Hi Statalisters I want to assess county differences in medication rates in Norway to detect outlier…
Specification of funnel plot with -funnelcompar-Hi Statalisters I want to assess county differences in medication rates in Norway to detect outlier…
Merging multiple Spss data sets into STATAHi, I'm trying to merge a few UNICEF MICS survey data files together which are on Spss onto stata, f…
Forcing my Event Study through R2000 in loopsHey Everyone, I'm currently trying to run a regression/prediction of some abnormal returns. All goo…
Subscribe to:
Post Comments (Atom)
0 Response to test equality of coefficients from different models estimated by user written commands
Post a Comment