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


eq1='igm=a1*fgm+a2*cgm+a3'
eq2='ich=a4*fch+a5*cch+a6'
eq3='ige=a7*fge+a8*cge+a9'
[lx,listcoef,ncoefeqs,xx,namexos,boundsvarb]=syslist(list(eq1,eq2,eq3),'a'+string([1:9]'),[])

               

AUTHOR

Eric Dubois 2002