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
Errors while testing for serial correlation and generating a new variableDear everyone, I am new to this page. I want to ask two questions, please I want to apologize if …
Ceo transition from male to femaleDear community, I have an unbalance panel data where I want to create the following variables with …
Help with graph, poisson regressionHello, I have ran a poisson regression for a paper that I have to write. My goal was to find the pr…
Logit FE regression in cross-sectional data.Dear Statalist, I have read about this topic in various discussions but I could not take a clear re…
Event Study Using earnings announcement dateI have a data that looks as follow . Post1 = 0 is collapsed mean of date -45 to -1 for the event dat…
Subscribe to:
Post Comments (Atom)
0 Response to Using Constraints with Movestay command
Post a Comment