Weighted least-squares regression has been programmed in Pascal for a microcomputer. A double precision Pascal compiler and the Motorola 6809 assembler produce a fast machine-code program occupying 22,000 bytes of memory when appended to the Pascal run-time module. Large data sets fit in the remaining memory. A regression with 72 observations and 24 parameters runs in 7 min, excluding optional print out of large matrices. The maximum dimensions of the design matrix, X, can be altered by modifying two Pascal constants. Minor changes to the Pascal source program will make it compatible with other Pascal compilers. The program optionally orthogonalises the X matrix to detect linearly-dependent columns in X, and/or generate orthogonal parameter estimates. After orthogonalizing X and fitting the model, the parameter estimates for the original X can be retrieved by the program. Regressions on a repeatedly reduced model are performed through elimination of columns in X until the minimum adequate model is obtained.
[1]
Norman R. Draper,et al.
Applied Regression Analysis
,
1968
.
[2]
M. Macnair.
The Genetics of Copper Tolerance in the Yellow Monkey Flower, MIMULUS GUTTATUS. I. Crosses to Nontolerants.
,
1979,
Genetics.
[3]
H. Tyson.
Cytoplasmic effects on plant weight in crosses between flax genotypes and genotrophs
,
1973,
Heredity.
[4]
Kenneth Mather.
Statistical analysis in biology
,
1943
.
[5]
H. Anton.
Elementary Linear Algebra
,
1970
.
[6]
H Tyson,et al.
A BASIC program package for weighted least squares solutions using a microprocessor with disc memory.
,
1982,
Computer programs in biomedicine.
[7]
M. Fieldes,et al.
Isozyme comparisons using weighted analyses of electrophoretic mobility in a range of polycrylamide gel concentrations
,
1981
.