Matrix Algebra

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Matrix Algebra

Edward Boadi
Hi List,
I need a freeware for matrix algebra.
I will be grateful if someone on this list can recommend a web page for free download
of the software.

Regards.
Edward.
Reply | Threaded
Open this post in threaded view
|

Re: Matrix Algebra

Maguin, Eugene
Edward,

You may have already considered this feature and rejected it but spss
provides a set of matrix algebra functions. Look at the Matrix-end matrix
section in the documentation.

Gene Maguin
Reply | Threaded
Open this post in threaded view
|

Re: Matrix Algebra

Edward Boadi
Good point Gene , has somebody got a syntax to compute the INVERSE of a M x N matrix ( where M , N >= 3).


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]]On Behalf Of
Gene Maguin
Sent: Friday, March 09, 2007 2:19 PM
To: [hidden email]
Subject: Re: Matrix Algebra


Edward,

You may have already considered this feature and rejected it but spss
provides a set of matrix algebra functions. Look at the Matrix-end matrix
section in the documentation.

Gene Maguin
Reply | Threaded
Open this post in threaded view
|

Re: Matrix Algebra

Maguin, Eugene
Edward,

There is both an inverse function and a generalized inverse function.
Perhaps this would work.

Gene Maguin
Reply | Threaded
Open this post in threaded view
|

Re: Matrix Algebra

Marta García-Granero
In reply to this post by Edward Boadi
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=35

http://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)
Reply | Threaded
Open this post in threaded view
|

Re: Matrix Algebra

Edward Boadi
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=35

http://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)
Reply | Threaded
Open this post in threaded view
|

Re: Matrix Algebra

Daniel E WILLIAMS
In reply to this post by Edward Boadi
Try "R" at http://www.r-project.org/ or "GNU Octave" at
http://www.gnu.org/software/octave/.  R runs in Windows, OS 10, and
unix.  Octave runs on unix.  Both are excellent and free.  R is a clone
of S and Octave is a clone of Matlab.

Dan Williams
Forecasting, Research and Analysis Office
Department of Human Services
State of Oregon, USA
503 947 5354

>>> Edward Boadi <[hidden email]> 3/9/2007 10:43 AM >>>

Hi List,
I need a freeware for matrix algebra.
I will be grateful if someone on this list can recommend a web page for
free download
of the software.

Regards.
Edward.