SHAZAM Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". I appreciate your help very much. See the error message and the command that I have used below.

  • The file parm.txt contains estimated parameters of group frontiers (by column)
  • The file sfa#.txt contains n# data observations for group#
  • Sections 1 and 3 are problem-specific.
    1. SET NUMBERS OF PARAMETERS ETC. gen1 nparms=8 gen1 ngroups=3 gen1 n1=100 gen1 n2=170 gen1 n3=120
    1. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS sample 1 nparms read(parm.txt)parm/rows=nparms cols=ngroups do# = 1,ngroups dim b# nparms copy parm b# / fcols=#;# tcols = 1;1 endo
    1. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS gen1 j2=n1+1 gen1 j3=n1+n2+1 gen1 k2=n1+n2 gen1 n=n1+n2+n3 sample 1 n genr one=1 genr dummy=0 Read (sfa1.txt) group t lnq lx1-lx7 sample j2 k2 read (sfa2.txt) group t lnq lx1-lx7 sample j3 n read (sfa3.txt) group t lnq lx1-lx7 sample 1 n matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7 dim x1 n1 nparms x2 n2 nparms x3 n3 nparms copy x x1/frows=1;n1 trows=1;n1 copy x x2/frows=j2;k2 trows=1;n2 copy x x3/frows=j3;n trows=1;n3 do #=1,ngroups matrix yhat# = x#b# endo matrix b = -(yhat1'|yhat2'|yhat3')' stat x / means = xbar matrix c = ((-xbar')|xbar')' matrix A = (-x)|x lp c A b / iter = 5000 primal = bstar dim beta1 nparms beta2 nparms gen1 p1=nparms+1 gen1 p2=nparms2 copy bstar beta1 / frows=1;nparms trows=1;nparms copy bstar beta2 / frows=p1;p2 trows=1;nparms matrix beta = beta1-beta2 print beta
    1. OBTAIN AND PRINT METATECHNOLOGY RATIOS do# = 1,ngroups matrix xbeta# = x#*beta matrix mtr# = exp(yhat#)/exp(xbeta#) stat mtr# print mtr# endo stop

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". I appreciate your help very much. See the error message and the command that I have used below.

  • The file parm.txt contains estimated parameters of group frontiers (by column)
  • The file sfa#.txt contains n# data observations for group#
  • Sections 1 and 3 are problem-specific.
    1. SET NUMBERS OF PARAMETERS ETC. ETC.

    gen1 nparms=8 gen1 ngroups=3 gen1 n1=100 gen1 n2=170 gen1 n3=120

    1. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS FRONTIERS

    sample 1 nparms read(parm.txt)parm/rows=nparms cols=ngroups do# = 1,ngroups dim b# nparms copy parm b# / fcols=#;# tcols = 1;1 endo

      1. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS gen1 j2=n1+1 gen1 j3=n1+n2+1 gen1 k2=n1+n2 gen1 n=n1+n2+n3 sample 1 n genr one=1 genr dummy=0 Read (sfa1.txt) group t lnq lx1-lx7 sample j2 k2 read (sfa2.txt) group t lnq lx1-lx7 sample j3 n read (sfa3.txt) group t lnq lx1-lx7 sample 1 n matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7 dim x1 n1 nparms x2 n2 nparms x3 n3 nparms copy x x1/frows=1;n1 trows=1;n1 copy x x2/frows=j2;k2 trows=1;n2 copy x x3/frows=j3;n trows=1;n3 do #=1,ngroups matrix yhat# = x#b# endo matrix b = -(yhat1'|yhat2'|yhat3')' stat x / means = xbar matrix c = ((-xbar')|xbar')' matrix A = (-x)|x lp c A b / iter = 5000 primal = bstar dim beta1 nparms beta2 nparms gen1 p1=nparms+1 gen1 p2=nparms2 copy bstar beta1 / frows=1;nparms trows=1;nparms copy bstar beta2 / frows=p1;p2 trows=1;nparms matrix beta = beta1-beta2 print beta
    1. OBTAIN AND PRINT METATECHNOLOGY RATIOS RATIOS

    do# = 1,ngroups matrix xbeta# = x#*beta matrix mtr# = exp(yhat#)/exp(xbeta#) stat mtr# print mtr# endo stop

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". -99999". I appreciate your help very much. See the error message and the command that I have used below.below.

  • The file parm.txt contains estimated parameters of group frontiers (by column)

  • column). The file sfa#.txt contains n# data observations for group#
  • group#. Sections 1 and 3 are problem-specific.
    1. 1. SET NUMBERS OF PARAMETERS ETC.

    ETC. gen1 nparms=8 gen1 ngroups=3 gen1 n1=100 gen1 n2=170 gen1 n3=120

    1. gen1 n3=120 2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS

    FRONTIERS sample 1 nparms read(parm.txt)parm/rows=nparms cols=ngroups do# = 1,ngroups dim b# nparms copy parm b# / fcols=#;# tcols = 1;1 endo

      1. endo 3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS gen1 j2=n1+1 gen1 j3=n1+n2+1 gen1 k2=n1+n2 gen1 n=n1+n2+n3 sample 1 n genr one=1 genr dummy=0 Read (sfa1.txt) group t lnq lx1-lx7 sample j2 k2 read (sfa2.txt) group t lnq lx1-lx7 sample j3 n read (sfa3.txt) group t lnq lx1-lx7 sample 1 n matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7 dim x1 n1 nparms x2 n2 nparms x3 n3 nparms copy x x1/frows=1;n1 trows=1;n1 copy x x2/frows=j2;k2 trows=1;n2 copy x x3/frows=j3;n trows=1;n3 do #=1,ngroups matrix yhat# = x#b# x#*b# endo matrix b = -(yhat1'|yhat2'|yhat3')' stat x / means = xbar matrix c = ((-xbar')|xbar')' matrix A = (-x)|x lp c A b / iter = 5000 primal = bstar dim beta1 nparms beta2 nparms gen1 p1=nparms+1 gen1 p2=nparms2 gen1 p2=nparms*2 copy bstar beta1 / frows=1;nparms trows=1;nparms copy bstar beta2 / frows=p1;p2 trows=1;nparms matrix beta = beta1-beta2 print beta
    1. 5. OBTAIN AND PRINT METATECHNOLOGY RATIOS

    RATIOS do# = 1,ngroups matrix xbeta# = x#*beta matrix mtr# = exp(yhat#)/exp(xbeta#) stat mtr# print mtr# endo stop

stop

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". I appreciate your help very much. See the error message and the command that I have used below.

The file parm.txt contains estimated parameters of group frontiers (by column). The file sfa#.txt contains n# data observations for group#. Sections 1 and 3 are problem-specific.

1. SET NUMBERS OF PARAMETERS ETC.

    gen1 nparms=8
    gen1 ngroups=3
    gen1 n1=100
    gen1 n2=170
    gen1 n3=120

2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS

    sample 1 nparms
    read(parm.txt)parm/rows=nparms cols=ngroups
    do# = 1,ngroups
      dim b# nparms
      copy parm b# / fcols=#;# tcols = 1;1
    endo

3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS
    gen1 j2=n1+1
    gen1 j3=n1+n2+1
    gen1 k2=n1+n2
    gen1 n=n1+n2+n3
    sample  1 n
    genr one=1
    genr dummy=0
    Read (sfa1.txt) group t lnq  lx1-lx7 
    sample j2 k2
    read (sfa2.txt) group t lnq  lx1-lx7
    sample j3 n 
    read (sfa3.txt) group t lnq  lx1-lx7
    sample 1 n
    matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7
    dim x1 n1 nparms x2 n2 nparms x3 n3 nparms 
    copy   x x1/frows=1;n1  trows=1;n1
    copy  x x2/frows=j2;k2  trows=1;n2
    copy  x x3/frows=j3;n  trows=1;n3
    do  #=1,ngroups
     matrix  yhat# = x#*b# 
     endo
    matrix  b = -(yhat1'|yhat2'|yhat3')' 
    stat  x / means = xbar 
    matrix  c = ((-xbar')|xbar')'
     matrix  A = (-x)|x 
    lp  c A b / iter = 5000 primal = bstar 
    dim  beta1 nparms beta2 nparms
    gen1  p1=nparms+1
    gen1  p2=nparms*2
    copy  bstar beta1 / frows=1;nparms trows=1;nparms
    copy  bstar beta2 / frows=p1;p2 trows=1;nparms
    matrix  beta = beta1-beta2 
    print  beta 

5. OBTAIN AND PRINT METATECHNOLOGY RATIOS

    do#  = 1,ngroups
     matrix  xbeta# = x#*beta
     matrix  mtr# = exp(yhat#)/exp(xbeta#)
     stat  mtr#
     print  mtr#
    endo 
    stop

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". I appreciate your help very much. See the error message and the command that I have used below.

The file parm.txt contains estimated parameters of group frontiers (by column). The file sfa#.txt contains n# data observations for group#. Sections 1 and 3 are problem-specific.

1. SET NUMBERS OF PARAMETERS ETC.

    gen1 nparms=8
    gen1 ngroups=3
    gen1 n1=100
    gen1 n2=170
    gen1 n3=120

2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS

    sample 1 nparms
    read(parm.txt)parm/rows=nparms cols=ngroups
    do# = 1,ngroups
      dim b# nparms
      copy parm b# / fcols=#;# tcols = 1;1
    endo

3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS
    gen1 j2=n1+1
    gen1 j3=n1+n2+1
    gen1 k2=n1+n2
    gen1 n=n1+n2+n3
    sample  1 n
    genr one=1
    genr dummy=0
    Read (sfa1.txt) group t lnq  lx1-lx7 
    sample j2 k2
    read (sfa2.txt) group t lnq  lx1-lx7
    sample j3 n 
    read (sfa3.txt) group t lnq  lx1-lx7
    sample 1 n
    matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7
    dim x1 n1 nparms x2 n2 nparms x3 n3 nparms 
    copy   x x1/frows=1;n1  trows=1;n1
    copy  x x2/frows=j2;k2  trows=1;n2
    copy  x x3/frows=j3;n  trows=1;n3
    do  #=1,ngroups
      matrix  yhat# = x#*b# 
    endo
    matrix  b = -(yhat1'|yhat2'|yhat3')' 
    stat  x / means = xbar 
    matrix  c = ((-xbar')|xbar')'
    matrix  A = (-x)|x 
    lp  c A b / iter = 5000 primal = bstar 
    dim  beta1 nparms beta2 nparms
    gen1  p1=nparms+1
    gen1  p2=nparms*2
    copy  bstar beta1 / frows=1;nparms trows=1;nparms
    copy  bstar beta2 / frows=p1;p2 trows=1;nparms
    matrix  beta = beta1-beta2 
    print  beta 

5. OBTAIN AND PRINT METATECHNOLOGY RATIOS

    do#  = 1,ngroups
      matrix  xbeta# = x#*beta
      matrix  mtr# = exp(yhat#)/exp(xbeta#)
      stat  mtr#
      print  mtr#
    endo 
    stop

Hey,I don't know if you have checked your email.I tried the solution you offered,but still,I can't compute the proper result.This time I use the trial version , I have list my command code above,and here is my output. Welcome to SHAZAM (Double Precision) v11.0 - JUNE 201 Windows7 PAR= 78 ...NOTE..CURRENT WORKING DIRECTORY IS: E:\ |_* The file parm.txt contains estimated parameters of group frontiers (by column) |_* The file sfa#.txt contains n# data observations for group# |_* Sections 1 and 3 are problem-specific. |_* 1. SET NUMBERS OF PARAMETERS ETC. |_gen1 nparms=8 |_gen1 ngroups=3 |_gen1 n1=100 |_gen1 n2=170 |_gen1 n3=120 |_* 2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS |_sample 1 nparms |_read(parm.txt)parm/rows=nparms cols=ngroups ...NOTE..UNIT 88 IS NOW ASSIGNED TO: parm.txt ...NOTE.. 8 ROWS AND 3 COLUMNS, BEGINNING AT ROW 1 ...ERROR..LESS DATA FOUND THAN EXPECTED..ZEROS USED |_do# = 1,ngroups |_dim b# nparms |_copy parm b# / fcols=#;# tcols = 1;1 |_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 EXECUTION FINISHED FOR DO LOOP #= 3 |_* 3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS |_gen1 j2=n1+1 |_gen1 j3=n1+n2+1 |_gen1 k2=n1+n2 |_gen1 n=n1+n2+n3 |_sample 1 n |_genr one=1 |_genr dummy=0 |_Read (sfa1.txt) group t lnq lx1-lx7 ...NOTE..UNIT 88 IS NOW ASSIGNED TO: sfa1.txt ...ERROR..TOO MANY ROWS OR COLS REQUESTED OR VARIABLE NAME ALREADY EXISTS. CHECK NAME IS UNIQUE. ...NOTE..VARIABLE GROUP IS DELETED 120 WORDS RELEASED ...NOTE..VARIABLE T IS DELETED 120 WORDS RELEASED ...NOTE..VARIABLE LNQ IS DELETED 120 WORDS RELEASED ...NOTE..VARIABLE LX1 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX2 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX3 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX4 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX5 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX6 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX7 IS DELETED 0 WORDS RELEASED |_sample j2 k2 |_read (sfa2.txt) group t lnq lx1-lx7 ...NOTE..UNIT 88 IS NOW ASSIGNED TO: sfa2.txt ...NOTE.. 10 VARIABLES AND 170 OBSERVATIONS STARTING AT OBS 101

...ERROR..READ ERROR IN ROW 101 ...ERROR..LESS DATA FOUND THAN EXPECTED..ZEROS USED |_sample j3 n |_read (sfa3.txt) group t lnq lx1-lx7 ...NOTE..UNIT 88 IS NOW ASSIGNED TO: sfa3.txt ...ERROR..TOO MANY ROWS OR COLS REQUESTED OR VARIABLE NAME ALREADY EXISTS. CHECK NAME IS UNIQUE. ...NOTE..VARIABLE GROUP IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE T IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LNQ IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX1 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX2 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX3 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX4 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX5 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX6 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX7 IS DELETED 270 WORDS RELEASED |_sample 1 n |_matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 940 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 86 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_dim x1 n1 nparms x2 n2 nparms x3 n3 nparms ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1105 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 88 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE ...ERROR..INSUFFICIENT MEMORY. AT LEAST 705 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 85 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_copy x x1/frows=1;n1 trows=1;n1 ...ERROR..VARIABLE x DOES NOT EXIST. |_copy x x2/frows=j2;k2 trows=1;n2 ...ERROR..VARIABLE x DOES NOT EXIST. |_copy x x3/frows=j3;n trows=1;n3 ...ERROR..VARIABLE x DOES NOT EXIST. |_do #=1,ngroups |_matrix yhat# = x#b# |_endo _do #=1,ngroups EXECUTION BEGINNING FOR DO LOOP # = 1 #_ matrix yhat1 = x1b1 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_matrix b = -(yhat1'|yhat2'|yhat3')' ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_stat x / means = xbar ...ERROR..VARIABLE x DOES NOT EXIST. |_matrix c = ((-xbar')|xbar')' ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_matrix A = (-x)|x ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_lp c A b / iter = 5000 primal = bstar ...ERROR..VARIABLE c DOES NOT EXIST. |_dim beta1 nparms beta2 nparms |_gen1 p1=nparms+1 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1748 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_gen1 p2=nparms2 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1748 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_copy bstar beta1 / frows=1;nparms trows=1;nparms ...ERROR..VARIABLE bstar DOES NOT EXIST. |_copy bstar beta2 / frows=p1;p2 trows=1;nparms ...ERROR..VARIABLE bstar DOES NOT EXIST. |_matrix beta = beta1-beta2 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_print beta ...ERROR..VARIABLE beta DOES NOT EXIST. |_ 5. OBTAIN AND PRINT METATECHNOLOGY RATIOS |_do# = 1,ngroups |_matrix xbeta# = x#*beta |_matrix mtr# = exp(yhat#)/exp(xbeta#) |_stat mtr# |_print mtr# |_endo #_ endo ...ERROR.. IS INVALID VARIABLE FOR EXEC endo |_stop

There is always something wrong with the READ command,I think that might because the data file does not loaded in the right way.I am confused about this.II appreciate your help.Thanks!

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". I appreciate your help very much. See the error message and the command that I have used below.

The file parm.txt contains estimated parameters of group frontiers (by column). The file sfa#.txt contains n# data observations for group#. Sections 1 and 3 are problem-specific.

1. SET NUMBERS OF PARAMETERS ETC.

    gen1 nparms=8
    gen1 ngroups=3
    gen1 n1=100
    gen1 n2=170
    gen1 n3=120

2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS

    sample 1 nparms
    read(parm.txt)parm/rows=nparms cols=ngroups
    do# = 1,ngroups
      dim b# nparms
      copy parm b# / fcols=#;# tcols = 1;1
    endo

3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS
    gen1 j2=n1+1
    gen1 j3=n1+n2+1
    gen1 k2=n1+n2
    gen1 n=n1+n2+n3
    sample  1 n
    genr one=1
    genr dummy=0
    Read (sfa1.txt) group t lnq  lx1-lx7 
    sample j2 k2
    read (sfa2.txt) group t lnq  lx1-lx7
    sample j3 n 
    read (sfa3.txt) group t lnq  lx1-lx7
    sample 1 n
    matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7
    dim x1 n1 nparms x2 n2 nparms x3 n3 nparms 
    copy   x x1/frows=1;n1  trows=1;n1
    copy  x x2/frows=j2;k2  trows=1;n2
    copy  x x3/frows=j3;n  trows=1;n3
    do  #=1,ngroups
      matrix  yhat# = x#*b# 
    endo
    matrix  b = -(yhat1'|yhat2'|yhat3')' 
    stat  x / means = xbar 
    matrix  c = ((-xbar')|xbar')'
    matrix  A = (-x)|x 
    lp  c A b / iter = 5000 primal = bstar 
    dim  beta1 nparms beta2 nparms
    gen1  p1=nparms+1
    gen1  p2=nparms*2
    copy  bstar beta1 / frows=1;nparms trows=1;nparms
    copy  bstar beta2 / frows=p1;p2 trows=1;nparms
    matrix  beta = beta1-beta2 
    print  beta 

5. OBTAIN AND PRINT METATECHNOLOGY RATIOS

    do#  = 1,ngroups
      matrix  xbeta# = x#*beta
      matrix  mtr# = exp(yhat#)/exp(xbeta#)
      stat  mtr#
      print  mtr#
    endo 
    stop

Hey,I don't know if you have checked your email.I tried the solution you offered,but still,I can't compute the proper result.This time I use the trial version , I have list my command code above,and here is my output. Welcome to SHAZAM (Double Precision) v11.0 - JUNE 201 Windows7 PAR= 78 ...NOTE..CURRENT WORKING DIRECTORY IS: E:\ |_* The file parm.txt contains estimated parameters of group frontiers (by column) |_* The file sfa#.txt contains n# data observations for group# |_* Sections 1 and 3 are problem-specific. |_* 1. SET NUMBERS OF PARAMETERS ETC. |_gen1 nparms=8 |_gen1 ngroups=3 |_gen1 n1=100 |_gen1 n2=170 |_gen1 n3=120 |_* 2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS |_sample 1 nparms |_read(parm.txt)parm/rows=nparms cols=ngroups ...NOTE..UNIT 88 IS NOW ASSIGNED TO: parm.txt ...NOTE.. 8 ROWS AND 3 COLUMNS, BEGINNING AT ROW 1 ...ERROR..LESS DATA FOUND THAN EXPECTED..ZEROS USED |_do# = 1,ngroups |_dim b# nparms |_copy parm b# / fcols=#;# tcols = 1;1 |_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 EXECUTION FINISHED FOR DO LOOP #= 3 |_* 3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS |_gen1 j2=n1+1 |_gen1 j3=n1+n2+1 |_gen1 k2=n1+n2 |_gen1 n=n1+n2+n3 |_sample 1 n |_genr one=1 |_genr dummy=0 |_Read (sfa1.txt) group t lnq lx1-lx7 ...NOTE..UNIT 88 IS NOW ASSIGNED TO: sfa1.txt ...ERROR..TOO MANY ROWS OR COLS REQUESTED OR VARIABLE NAME ALREADY EXISTS. CHECK NAME IS UNIQUE. ...NOTE..VARIABLE GROUP IS DELETED 120 WORDS RELEASED ...NOTE..VARIABLE T IS DELETED 120 WORDS RELEASED ...NOTE..VARIABLE LNQ IS DELETED 120 WORDS RELEASED ...NOTE..VARIABLE LX1 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX2 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX3 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX4 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX5 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX6 IS DELETED 0 WORDS RELEASED ...NOTE..VARIABLE LX7 IS DELETED 0 WORDS RELEASED |_sample j2 k2 |_read (sfa2.txt) group t lnq lx1-lx7 ...NOTE..UNIT 88 IS NOW ASSIGNED TO: sfa2.txt ...NOTE.. 10 VARIABLES AND 170 OBSERVATIONS STARTING AT OBS 101

...ERROR..READ ERROR IN ROW 101 ...ERROR..LESS DATA FOUND THAN EXPECTED..ZEROS USED |_sample j3 n |_read (sfa3.txt) group t lnq lx1-lx7 ...NOTE..UNIT 88 IS NOW ASSIGNED TO: sfa3.txt ...ERROR..TOO MANY ROWS OR COLS REQUESTED OR VARIABLE NAME ALREADY EXISTS. CHECK NAME IS UNIQUE. ...NOTE..VARIABLE GROUP IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE T IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LNQ IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX1 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX2 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX3 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX4 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX5 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX6 IS DELETED 270 WORDS RELEASED ...NOTE..VARIABLE LX7 IS DELETED 270 WORDS RELEASED |_sample 1 n |_matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 940 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 86 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_dim x1 n1 nparms x2 n2 nparms x3 n3 nparms ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1105 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 88 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE ...ERROR..INSUFFICIENT MEMORY. AT LEAST 705 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 85 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_copy x x1/frows=1;n1 trows=1;n1 ...ERROR..VARIABLE x DOES NOT EXIST. |_copy x x2/frows=j2;k2 trows=1;n2 ...ERROR..VARIABLE x DOES NOT EXIST. |_copy x x3/frows=j3;n trows=1;n3 ...ERROR..VARIABLE x DOES NOT EXIST. |_do #=1,ngroups |_matrix yhat# = x#b# |_endo _do #=1,ngroups EXECUTION BEGINNING FOR DO LOOP # = 1 #_ matrix yhat1 = x1b1 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_matrix b = -(yhat1'|yhat2'|yhat3')' ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_stat x / means = xbar ...ERROR..VARIABLE x DOES NOT EXIST. |_matrix c = ((-xbar')|xbar')' ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_matrix A = (-x)|x ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_lp c A b / iter = 5000 primal = bstar ...ERROR..VARIABLE c DOES NOT EXIST. |_dim beta1 nparms beta2 nparms |_gen1 p1=nparms+1 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1748 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_gen1 p2=nparms2 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1748 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_copy bstar beta1 / frows=1;nparms trows=1;nparms ...ERROR..VARIABLE bstar DOES NOT EXIST. |_copy bstar beta2 / frows=p1;p2 trows=1;nparms ...ERROR..VARIABLE bstar DOES NOT EXIST. |_matrix beta = beta1-beta2 ...ERROR..INSUFFICIENT MEMORY. AT LEAST 1744 MORE WORDS NEEDED THIS REQUIRES AT LEAST PAR= 93 CURRENT PAR= 78 ...NOTE..TRY COMPRESS COMMAND TO RECOVER UNUSED SPACE |_print beta ...ERROR..VARIABLE beta DOES NOT EXIST. |_ 5. OBTAIN AND PRINT METATECHNOLOGY RATIOS |_do# = 1,ngroups |_matrix xbeta# = x#*beta |_matrix mtr# = exp(yhat#)/exp(xbeta#) |_stat mtr# |_print mtr# |_endo #_ endo ...ERROR.. IS INVALID VARIABLE FOR EXEC endo |_stop

There is always something wrong with the READ command,I think that might because the data file does not loaded in the right way.I am confused about this.II appreciate your help.Thanks!

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". I appreciate your help very much. See the error message and the command that I have used below.

The file parm.txt contains estimated parameters of group frontiers (by column). The file sfa#.txt contains n# data observations for group#. Sections 1 and 3 are problem-specific.

1. SET NUMBERS OF PARAMETERS ETC.

    gen1 nparms=8
    gen1 ngroups=3
    gen1 n1=100
    gen1 n2=170
    gen1 n3=120

2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS

    sample 1 nparms
    read(parm.txt)parm/rows=nparms cols=ngroups
    do# = 1,ngroups
      dim b# nparms
      copy parm b# / fcols=#;# tcols = 1;1
    endo

3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS
    gen1 j2=n1+1
    gen1 j3=n1+n2+1
    gen1 k2=n1+n2
    gen1 n=n1+n2+n3
    sample  1 n
    genr one=1
    genr dummy=0
    Read (sfa1.txt) group t lnq  lx1-lx7 
    sample j2 k2
    read (sfa2.txt) group t lnq  lx1-lx7
    sample j3 n 
    read (sfa3.txt) group t lnq  lx1-lx7
    sample 1 n
    matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7
    dim x1 n1 nparms x2 n2 nparms x3 n3 nparms 
    copy   x x1/frows=1;n1  trows=1;n1
    copy  x x2/frows=j2;k2  trows=1;n2
    copy  x x3/frows=j3;n  trows=1;n3
    do  #=1,ngroups
      matrix  yhat# = x#*b# 
    endo
    matrix  b = -(yhat1'|yhat2'|yhat3')' 
    stat  x / means = xbar 
    matrix  c = ((-xbar')|xbar')'
    matrix  A = (-x)|x 
    lp  c A b / iter = 5000 primal = bstar 
    dim  beta1 nparms beta2 nparms
    gen1  p1=nparms+1
    gen1  p2=nparms*2
    copy  bstar beta1 / frows=1;nparms trows=1;nparms
    copy  bstar beta2 / frows=p1;p2 trows=1;nparms
    matrix  beta = beta1-beta2 
    print  beta 

5. OBTAIN AND PRINT METATECHNOLOGY RATIOS

    do#  = 1,ngroups
      matrix  xbeta# = x#*beta
      matrix  mtr# = exp(yhat#)/exp(xbeta#)
      stat  mtr#
      print  mtr#
    endo 
    stop

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". I appreciate your help very much. See the error message and the command that I have used below.

The file parm.txt contains estimated parameters of group frontiers (by column). The file sfa#.txt contains n# data observations for group#. Sections 1 and 3 are problem-specific.

1. SET NUMBERS OF PARAMETERS ETC.

    gen1 nparms=8
    gen1 ngroups=3
    gen1 n1=100
    gen1 n2=170
    gen1 n3=120

2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS

    sample 1 nparms
    read(parm.txt)parm/rows=nparms cols=ngroups
    do# = 1,ngroups
      dim b# nparms
      copy parm b# / fcols=#;# tcols = 1;1
    endo

3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS
     gen1 j2=n1+1
    gen1 j3=n1+n2+1
    gen1 k2=n1+n2
    gen1 n=n1+n2+n3
    sample  1 n
    genr one=1
    genr dummy=0
    Read (sfa1.txt) group t lnq  lx1-lx7 
    sample j2 k2
    read (sfa2.txt) group t lnq  lx1-lx7
    sample j3 n 
    read (sfa3.txt) group t lnq  lx1-lx7
    sample 1 n
    matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7
    dim x1 n1 nparms x2 n2 nparms x3 n3 nparms 
    copy   x x1/frows=1;n1  trows=1;n1
    copy  x x2/frows=j2;k2  trows=1;n2
    copy  x x3/frows=j3;n  trows=1;n3
    do  #=1,ngroups
      matrix  yhat# = x#*b# 
    endo
    matrix  b = -(yhat1'|yhat2'|yhat3')' 
    stat  x / means = xbar 
    matrix  c = ((-xbar')|xbar')'
    matrix  A = (-x)|x 
    lp  c A b / iter = 5000 primal = bstar 
    dim  beta1 nparms beta2 nparms
    gen1  p1=nparms+1
    gen1  p2=nparms*2
    copy  bstar beta1 / frows=1;nparms trows=1;nparms
    copy  bstar beta2 / frows=p1;p2 trows=1;nparms
    matrix  beta = beta1-beta2 
    print  beta 

5. OBTAIN AND PRINT METATECHNOLOGY RATIOS

    do#  = 1,ngroups
      matrix  xbeta# = x#*beta
      matrix  mtr# = exp(yhat#)/exp(xbeta#)
      stat  mtr#
      print  mtr#
    endo 
    stop

Metafrontier Estimation

Hi all, I have got some problem when computing metafrontier parameters.I've followed the SHAZAM program given by Rao, O'Donnell and Battese.I have tried the command for several times but there is always some errors.It says "...MISSING OBSERVATION SET TO -99999". I appreciate your help very much. See the error message and the command that I have used below.

The file parm.txt contains estimated parameters of group frontiers (by column). The file sfa#.txt contains n# data observations for group#. Sections 1 and 3 are problem-specific.

1. SET NUMBERS OF PARAMETERS ETC.

    gen1 nparms=8
    gen1 ngroups=3
    gen1 n1=100
    gen1 n2=170
    gen1 n3=120

2. READ THE ESTIMATED PARAMETERS OF THE GROUP FRONTIERS

    sample 1 nparms
    read(parm.txt)parm/rows=nparms cols=ngroups
    do# = 1,ngroups
      dim b# nparms
      copy parm b# / fcols=#;# tcols = 1;1
    endo

3. READ THE DATA AND CONSTRUCT DATA MATRICES AND VECTORS

    gen1 j2=n1+1
    gen1 j3=n1+n2+1
    gen1 k2=n1+n2
    gen1 n=n1+n2+n3
    sample  1 n
    genr one=1
    genr dummy=0
    Read (sfa1.txt) group t lnq  lx1-lx7 
    sample j2 k2
    read (sfa2.txt) group t lnq  lx1-lx7
    sample j3 n 
    read (sfa3.txt) group t lnq  lx1-lx7
    sample 1 n
    matrix x = one|lx1|lx2|lx3|lx4|lx5|lx6|lx7
    dim x1 n1 nparms x2 n2 nparms x3 n3 nparms 
    copy   x x1/frows=1;n1  trows=1;n1
    copy  x x2/frows=j2;k2  trows=1;n2
    copy  x x3/frows=j3;n  trows=1;n3
    do  #=1,ngroups
      matrix  yhat# = x#*b# 
    endo
    matrix  b = -(yhat1'|yhat2'|yhat3')' 
    stat  x / means = xbar 
    matrix  c = ((-xbar')|xbar')'
    matrix  A = (-x)|x 
    lp  c A b / iter = 5000 primal = bstar 
    dim  beta1 nparms beta2 nparms
    gen1  p1=nparms+1
    gen1  p2=nparms*2
    copy  bstar beta1 / frows=1;nparms trows=1;nparms
    copy  bstar beta2 / frows=p1;p2 trows=1;nparms
    matrix  beta = beta1-beta2 
    print  beta 

5. OBTAIN AND PRINT METATECHNOLOGY RATIOS

    do#  = 1,ngroups
      matrix  xbeta# = x#*beta
      matrix  mtr# = exp(yhat#)/exp(xbeta#)
      stat  mtr#
      print  mtr#
    endo 
    stop