Posted by
Edward Boadi on
Mar 09, 2007; 8:22pm
URL: http://spssx-discussion.165.s1.nabble.com/Matrix-Algebra-tp1074419p1074424.html
Thanks Marta,
Your example was very helpful.
Regards.
Edward.
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]]On Behalf Of
Marta García-Granero
Sent: Friday, March 09, 2007 3:08 PM
To:
[hidden email]
Subject: Re: Matrix Algebra
Hi Edward
EB> Good point Gene , has somebody got a syntax to compute the
EB> INVERSE of a M x N matrix ( where M , N >= 3).
Is this what you are looking for?
* Silly example *.
MATRIX.
COMPUTE M={1,2,3,4;5,6,7,9;11,12,13,4;5,8,17,15}.
COMPUTE N={1,2,3,4;5,7,6,8;10,12,13,4;15,7,7,11}.
PRINT M
/FORMAT='F8'
/TITLE='MATRIX M'.
PRINT N
/FORMAT='F8'
/TITLE='MATRIX N'.
COMPUTE P=M*N.
PRINT P
/FORMAT='F8'
/TITLE='MATRIX M*N'.
COMPUTE PINV=INV(P).
PRINT PINV
/FORMAT='F8'
/TITLE='INVERSE OF MATRIX M*N'.
END MATRIX.
As you can see, SPSS' MATRIX is quite easy to use. Anyway, I have a
good freeware matrix program. Unfortunately, the author removed it
from his web page, butI can send it to you if you still want it,
although I strongly recommend you to learn SPSS' MATRIX, I'm quite a
fanatic of it. You can see a couple of complicated methods I wrote
using it at SPSS Developer Central:
http://www.spss.com/devcentral/index.cfm?pg=downloadDet&dId=35http://www.spss.com/devcentral/index.cfm?pg=downloadDet&dId=39(If requested to Login, use Guest both as user and password).
--
Regards,
Dr. Marta García-Granero,PhD mailto:
[hidden email]
Statistician
---
"It is unwise to use a statistical procedure whose use one does
not understand. SPSS syntax guide cannot supply this knowledge, and it
is certainly no substitute for the basic understanding of statistics
and statistical thinking that is essential for the wise choice of
methods and the correct interpretation of their results".
(Adapted from WinPepi manual - I'm sure Joe Abrahmson will not mind)