Name

syslist — recovers objects names in a system of equations

CALLING SEQUENCE

[lx,listcoef,ncoefeqs,xx,namexos,boundsvarb]=syslist(l,coef,boundsvarb)

PARAMETERS

Input

• l = a list of k equations

• coef = a (mx1) vector of coefficients names

• boundsvarb = a vector of bounds or []

Output

• lx = the list of all endogenous variables

• listcoef = the list of coefficients

• ncoefeqs = the list pf sizes of coefficients for each equation

• xx = matrix of exogenous varaibles

• namexos = the vector of their names

• boundsvarb = the vector of bounds

DESCRIPTION

Recovers from an equation the name of the endogenous variable, the indexes of the coefficients (in a vector) and the names of the exogenous variables (also in a vector).

EXAMPLE

1) [nyi,ncoefi,lexoi]=eqlist('y1=c1*x1+c2*x2',['c1';'c2'])
2) [grocer_nyi,grocer_ncoefi,grocer_lexoi]=eqlist(varargin(grocer_i),grocer_coef)
 
Example 1 extracts in nyi y1, in ncoefi [1;2] and in lexoi ['x1';'x2']. 
Example 2 is taken from function twosls.

               

AUTHOR

Eric Dubois 2002