SHAZAM Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Metafrontier and MTR codes for Cobb-Douglas Function

I have a problem with estimating a meta-frontier (6 groups) using a Cobb-Douglas function. The commands are working well until when I get at the (READ THE DATA AND DATA MATRICES AND VECTORS) section and I am getting an error as follows:

read (sfa1.txt) group t ly lx1 lx2 lx3 lx4 UNIT 88 IS NOW ASSIGNED TO: sfa1.txt 7 VARIABLES AND 24 OBSERVATIONS STARTING AT OBS 137

*...ERROR..LESS DATA FOUND THAN EXPECTED..ZEROS USED TYPE COMMAND*

So I would like to know what could be causing this issue? I have also included the rest of the commands that I used in the model below.

TYPE COMMAND gen1 nparms = 4 TYPE COMMAND gen1 ngroups = 6 TYPE COMMAND gen1 n1 = 40 TYPE COMMAND gen1 n2 = 40 TYPE COMMAND gen1 n3 = 56 TYPE COMMAND gen1 n4 = 24 TYPE COMMAND gen1 n5 = 24 TYPE COMMAND gen1 n6 = 24 TYPE COMMAND read (parm.txt) parm /rows = nparms cols = ngroups UNIT 88 IS NOW ASSIGNED TO: parm.txt 4 ROWS AND 6 COLUMNS, BEGINNING AT ROW 1

...SAMPLE RANGE IS NOW SET TO: 1 4 TYPE COMMAND do# = 1, ngroups TYPE COMMAND dim b# nparms TYPE COMMAND copy parm b# / fcols=#;# tcols = 1;1 TYPE COMMAND endo _do# = 1, ngroups * EXECUTION BEGINNING FOR DO LOOP # = 1 #_ dim b1 nparms #_ copy parm b1 / fcols=1;1 tcols = 1;1 #_ endo #_ dim b2 nparms #_ copy parm b2 / fcols=2;2 tcols = 1;1 #_ endo #_ dim b3 nparms #_ copy parm b3 / fcols=3;3 tcols = 1;1 #_ endo #_ dim b4 nparms #_ copy parm b4 / fcols=4;4 tcols = 1;1 #_ endo #_ dim b5 nparms #_ copy parm b5 / fcols=5;5 tcols = 1;1 #_ endo #_ dim b6 nparms #_ copy parm b6 / fcols=6;6 tcols = 1;1 #_ endo * EXECUTION FINISHED FOR DO LOOP #= 6 TYPE COMMAND gen1 j2 = n1+1 TYPE COMMAND gen1 j3 = n1+n2+1 TYPE COMMAND gen1 j4 = n1+n2+n3+1 TYPE COMMAND gen1 j5 = n1+n2+n3+n4+1 TYPE COMMAND gen1 j6 = n1+n2+n3+n4+n5+1 TYPE COMMAND gen1 k2 = n1+n2 TYPE COMMAND gen1 k3 = n1+n2+n3 TYPE COMMAND gen1 k4 = n1+n2+n3+n4 TYPE COMMAND gen1 k5 = n1+n2+n3+n4+n5 TYPE COMMAND gen1 n = n1+n2+n3+n4+n5+n6 TYPE COMMAND smpl 1 n TYPE COMMAND read (sfa1.txt) group t ly lx1 lx2 lx3 lx4

Metafrontier and MTR codes for Cobb-Douglas Function

I have a problem with estimating a meta-frontier (6 groups) using a Cobb-Douglas function. The commands are working well until when I get at the (READ THE DATA AND DATA MATRICES AND VECTORS) section and I am getting an error as follows:

read (sfa1.txt) group t ly lx1 lx2 lx3 lx4
 UNIT 88 IS NOW ASSIGNED TO: sfa1.txt
    7 VARIABLES AND       24 OBSERVATIONS STARTING AT OBS     137

*...ERROR..LESS 137 ****...ERROR..LESS DATA FOUND THAN EXPECTED..ZEROS USED TYPE COMMAND*

COMMAND****

So I would like to know what could be causing this issue? I have also included the rest of the commands that I used in the model below.

 TYPE COMMAND
gen1 nparms = 4
 TYPE COMMAND
gen1 ngroups = 6
 TYPE COMMAND
gen1 n1 = 40
 TYPE COMMAND
gen1 n2 = 40
 TYPE COMMAND
gen1 n3 = 56
 TYPE COMMAND
gen1 n4 = 24
 TYPE COMMAND
gen1 n5 = 24
 TYPE COMMAND
gen1 n6 = 24
 TYPE COMMAND
read (parm.txt) parm /rows = nparms cols = ngroups
 UNIT 88 IS NOW ASSIGNED TO: parm.txt
       4 ROWS AND           6 COLUMNS, BEGINNING AT ROW       1

1 ...SAMPLE RANGE IS NOW SET TO: 1 4 TYPE COMMAND do# = 1, ngroups TYPE COMMAND dim b# nparms TYPE COMMAND copy parm b# / fcols=#;# tcols = 1;1 TYPE COMMAND endo _do# = 1, ngroups * ****** EXECUTION BEGINNING FOR DO LOOP # = 1 #_ dim b1 nparms #_ copy parm b1 / fcols=1;1 tcols = 1;1 #_ endo #_ dim b2 nparms #_ copy parm b2 / fcols=2;2 tcols = 1;1 #_ endo #_ dim b3 nparms #_ copy parm b3 / fcols=3;3 tcols = 1;1 #_ endo #_ dim b4 nparms #_ copy parm b4 / fcols=4;4 tcols = 1;1 #_ endo #_ dim b5 nparms #_ copy parm b5 / fcols=5;5 tcols = 1;1 #_ endo #_ dim b6 nparms #_ copy parm b6 / fcols=6;6 tcols = 1;1 #_ endo * ****** EXECUTION FINISHED FOR DO LOOP #= 6 TYPE COMMAND gen1 j2 = n1+1 TYPE COMMAND gen1 j3 = n1+n2+1 TYPE COMMAND gen1 j4 = n1+n2+n3+1 TYPE COMMAND gen1 j5 = n1+n2+n3+n4+1 TYPE COMMAND gen1 j6 = n1+n2+n3+n4+n5+1 TYPE COMMAND gen1 k2 = n1+n2 TYPE COMMAND gen1 k3 = n1+n2+n3 TYPE COMMAND gen1 k4 = n1+n2+n3+n4 TYPE COMMAND gen1 k5 = n1+n2+n3+n4+n5 TYPE COMMAND gen1 n = n1+n2+n3+n4+n5+n6 TYPE COMMAND smpl 1 n TYPE COMMAND read (sfa1.txt) group t ly lx1 lx2 lx3 lx4

lx4