Multiple regression: Difference between revisions
m
→{{header|R}}: use QR instead of the normal equations
m (→{{header|R}}) |
m (→{{header|R}}: use QR instead of the normal equations) |
||
Line 1,442:
than the method above, is to solve the linear system directly
and use the crossprod function:
<lang R>solve(
A numerically more stable way is to use the QR decomposition of the design matrix:
<lang R>qr.coef(qr(X), y)</lang>
=={{header|Racket}}==
|