[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reg_sweep
From: |
John Darrington |
Subject: |
Re: reg_sweep |
Date: |
Fri, 27 Aug 2010 14:24:04 +0000 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Aug 26, 2010 at 12:57:28PM +0000, John Darrington wrote:
glm Y by X1 X2.
In my glm implementation I have the following code:
{
gsl_matrix *cm = covariance_calculate_unnormalized (cov);
dump_matrix (cm);
reg_sweep (cm, 0);
dump_matrix (cm);
}
I can see that before the sweep operatotr, the Corrected Total is in
CM(0,0)
I can also see that after the sweep operator, CM(0,0) contains
(CorrectedTotal - SumOfSquaresForX1). How do I get the sum of squares for
X2?
The only way I can see it is to re-arrange the rows/columns of CM such
that X2 is
the first factor and re-run reg_sweep.
Also I found that this only works for upto 2 factors. When 3 factors are used
the
value in CM(0,0) is completely wrong.
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature