Fit Linear Model to Two $\left[\phantom{\rule{0.3em}{0ex}}x,y\phantom{\rule{0.3em}{0ex}}\right]$ Sets
CALL sla_FITXY (ITYPE, NP, XYE, XYM, COEFFS, J)
ITYPE  I  type of model: 4 or 6 (note 1) 
 
NP  I  number of samples (note 2) 


XYE  D(2,NP)  expected $\left[\phantom{\rule{0.3em}{0ex}}x,y\phantom{\rule{0.3em}{0ex}}\right]$ for each sample 


XYM  D(2,NP)  measured $\left[\phantom{\rule{0.3em}{0ex}}x,y\phantom{\rule{0.3em}{0ex}}\right]$ for each sample 
COEFFS  D(6)  coefficients of model (note 3) 
 
J  I  status: 
 

 0 = OK 
 

 $$1 = illegal ITYPE 



 $$2 = insufficient data 



 $$3 = singular solution 
${x}_{e}=a+b{x}_{m}+c{y}_{m}$
${y}_{e}=d+e{x}_{m}+f{y}_{m}$