pen data D:\five.xlsx
data(format=xlsx,org=cols) / c1 c2 c3 c4 c5 p1 p2 p3 p4 p5 y
nonlin(parmset=base) mu1 mu2 mu3 mu4 mu5 $
a1 a2 a3 a4 a5
nonlin(parmset=nonnegative) mu1>=0.0 mu2>=0.0 mu3>=0.0 mu4>=0.0 $
mu5>=0.0
nonlin(parmset=summation) a1+a2+a3+a4+a5==1
*
frml fx1 c1 = (1-a1)*mu1*p1+a1*y-a1*mu2*p2+$
-a1*mu3*p3-a1*mu4*p4-a1*mu5*p5
frml fx2 c2 = (1-a2)*mu2*p2+a2*y-a2*mu1*p1+$
-a2*mu3*p3-a2*mu4*p4-a2*mu5*p5
frml fx3 c3 = (1-a3)*mu3*p3+a3*y-a3*mu1*p1+$
-a3*mu2*p2-a3*mu4*p4-a3*mu5*p5
frml fx4 c4 = (1-a4)*mu4*p4+a4*y-a4*mu1*p1+$
-a4*mu2*p2-a4*mu3*p3-a4*mu5*p5
*
compute mu1=mu2=mu3=mu4=mu5=0.0
compute a1=a2=a3=a4=a5=0.0
*
nlsystem(parmset=base+nonnegative+summation,iters=500) / fx1 fx2 fx3 fx4
Non-Linear System Estimation
Convergence in 474 Iterations. Final criterion was 0.0000000 <= 0.0000100
Usable Observations 15
Log Likelihood -966.6275
Dependent Variable C1
Mean of Dependent Variable 46494219.467
Std Error of Dependent Variable 25002427.493
Standard Error of Estimate 7648651.761
Sum of Squared Residuals 8.77528e+14
Durbin-Watson Statistic 0.9187
Dependent Variable C2
Mean of Dependent Variable 8776947.4667
Std Error of Dependent Variable 3895075.1077
Standard Error of Estimate 1649934.7074
Sum of Squared Residuals 4.08343e+13
Durbin-Watson Statistic 2.1847
Dependent Variable C3
Mean of Dependent Variable 41941281.067
Std Error of Dependent Variable 23558927.974
Standard Error of Estimate 6686228.170
Sum of Squared Residuals 6.70585e+14
Durbin-Watson Statistic 1.6681
Dependent Variable C4
Mean of Dependent Variable 7399545.8667
Std Error of Dependent Variable 3688252.3484
Standard Error of Estimate 1078352.0334
Sum of Squared Residuals 1.74426e+13
Durbin-Watson Statistic 1.1589
Variable Coeff Std Error T-Stat Signif
*************************************************************************************
1. MU1 53169.225864 60007.662267 0.88604 0.37559564
2. MU2 -0.000000 0.000000 0.00000 0.00000000
3. MU3 134204.859039 52688.314835 2.54715 0.01086078
4. MU4 0.000000 0.000000 0.00000 0.00000000
5. MU5 852919.765401 45563.599847 18.71932 0.00000000
6. A1 0.467941 0.016459 28.43130 0.00000000
7. A2 0.092000 0.008779 10.47901 0.00000000
8. A3 0.361248 0.015149 23.84640 0.00000000
9. A4 0.078810 0.007386 10.67004 0.00000000
10. A5 0.000000 0.000000 0.00000 0.00000000
Return to General Econometrics
Users browsing this forum: No registered users and 0 guests