I want to test Lr test for endogenous switching regression equation (I have used movestay of this), where the constraint is "coefficient of the select equation equals the difference between the coefficients of the two segment equations".
I tried to run the following command to get the constrained equation, so that i can run lrtest. But i get the following error. Could someone help me with this?
**Command**
constraint 1 [LogWage1_1] Female -[LogWage1_0] Female = [HighWg] Female
constraint 2 [LogWage1_1] TechnicalEducation1 -[LogWage1_0] TechnicalEducation1 = [HighWg] TechnicalEducation1
constraint 3 [LogWage1_1] NewReligion2 -[LogWage1_0] NewReligion2 = [HighWg] NewReligion2
constraint 4 [LogWage1_1] NewReligion3 -[LogWage1_0] NewReligion3 = [HighWg] NewReligion3
constraint 5 [LogWage1_1] SocialGroup1 -[LogWage1_0] SocialGroup1 = [HighWg] SocialGroup1
constraint 6 [LogWage1_1] SocialGroup2 -[LogWage1_0] SocialGroup2 = [HighWg] SocialGroup2
constraint 7 [LogWage1_1] SocialGroup3 -[LogWage1_0] SocialGroup3 = [HighWg] SocialGroup3
movestay (LogWage1 Female Sector1 MaritialStatus1 YearsOfEducation TechnicalEducation1 NewReligion2 NewReligion3 SocialGroup1 SocialGroup2 SocialGroup3 Experience ExperienceSq ),select( HighWg Female Sector1 MaritialStatus1 YearsOfEducation TechnicalEducation1 NewReligion2 NewReligion3 SocialGroup1 SocialGroup2 SocialGroup3 Experience ExperienceSq) constraints(1/7)
**The result**
Fitting initial values .....Constraints invalid:
LogWage1_1 not found
r(111);
The LogWage1_1, LogWage1_0 are the segment equations name I got in the result of the movestay command without constraints, while HighWg is the (binary) dependent variable of the switching/select equation.
Related Posts with Using Constraints with Movestay command
Drop ID if different observations for that same ID do not vary across another variableHello, I am using Stata 14.2 on Windows. This is my first post so I hope I am doing this correctly.…
Manually installing Blindschemes by Daniel BischofDear Statalisters I admit this is a bit of a non-problem, but I'd like to find a solution nonethele…
Count number of cases if dates are within a certain range (a la statsby)Greetings all, I have single line per observation survival data (4 million lines). Here is a simpli…
Multinomial logit with sample selectionDear everyone, I am looking for something similar to Heckman selection model/svysemlog with a modi…
How to declare data with tournament structure as panel data?Dear all, I recently read some papers using panel data from sports. I started to wonder how one wou…
Subscribe to:
Post Comments (Atom)
0 Response to Using Constraints with Movestay command
Post a Comment