Hi mates
I am using Ox to run my static panel data but it was shown as :
Year not found
Runtime error: '[][-1] in matrix[197][13]' index out of range
Runtime error occurred in SetYear(125), call trace:
D:\Ox\packages\DPD\dpd.ox (125): SetYear
C:\Program Files\Ox\packages\dpd\rldata02.ox (9): main
===============================================================
#include <oxstd.h>
#import <packages/dpd/dpd>
main()
{
decl dpd = new DPD();
dpd.Load("rldata2.xls");
dpd.Info();
dpd.SetYear("Year");
dpd.Select(Y_VAR, {"INAC", 0, 0});
dpd.Select(X_VAR, {"RLGDP", 0, 0, "RLGDPGR", 0, 0,
"RLTRADE", 0, 0, "RLEDU", 0, 0, "RLWAGE", 0, 0,
"RLIR", 0, 0, "RLER", 0, 0, "RLFDI", 0, 0,
"RLSHARE", 0, 0, "RLRISK", 0, 0, "RLCD", 0, 0});
//------------------- OLS -----------------------------
dpd.SetOptions(FALSE); // no robust std.errors
dpd.SetTransform(T_NONE); // estimate in levels
print("\n\n***** Baltagi (1995), Table 2.1: OLS");
dpd.Estimate(); // 1-step estimation
//------------------- between -------------------------
dpd.SetTransform(T_BETWEEN); // estimate between groups
print("\n\n***** Baltagi (1995), Table 2.1: Between");
dpd.Estimate(); // 1-step estimation
//------------------- within --------------------------
dpd.SetTransform(T_WITHIN); // estimate within groups
print("\n\n***** Baltagi (1995), Table 2.1: Within");
dpd.Estimate(); // 1-step estimation
delete dpd; // finished with object
}
--
Huan Zou
Manchester School of Management
UMIST
P.O BOX 88
Manchester
M60 1QD
UK
Phone: +44(161)200 3529
Email: [log in to unmask]
|