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
Constructing real rate of return variableDear Community, I am trying to construct a real rate of return on a bond of 2 years to maturity. Th…
Panel data with three dependent variablesHi all, I am pretty basic with statistics, but already have some experience with Stata. In my curr…
Changing the Column Titles and adding notes using Outreg2I am trying to export a table of summary statistics using the following command: outreg2 using "res…
Cutting out the appropriate end of the variables Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(quarter Dl…
Error message r(699)Hi there, I'm trying to install factortest and sortl. It has worked previously, but now when I sear…
Subscribe to:
Post Comments (Atom)
0 Response to test equality of coefficients from different models estimated by user written commands
Post a Comment