
Help for the OLSQ routine.
I. Description
The OLSQ routine is a Mathematica port of the instrinsic speakeasy
ordinary least squares regression routine. The routine i svery helpful
for quickly assessing the importance of certain wavelengths in a spectrum
or certain princiapl components in a PCR analysis. For information of how
to use it in Speakeasy see the help files that came with Speakeasy.
The model that is fit is:
with one independent variable for each column of the independentvariables
matrix.
II. The format of the call
In Mathematica:
output = OLSQ[independentvariables, dependentvariables, print];
independentvariables --> is be a matrix (a set of spectra with
each row being a spectrum and each column being the wavelengths of each
spectrum) .
dependentvariables --> is a one dimensional array with one value
for each row of the indepentvariable matrix. (i. e. a concentration corresponding
to each spectrum).
output --> will be a list fo three elements which will be: