27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

930 MATRIX—END MATRIX<br />

DET(M) Determinant. Takes a single argument, which must be a square matrix.<br />

Returns a scalar, which is the determinant of the argument.<br />

DIAG(M) Diagonal of a matrix. Takes a single argument. Returns a column<br />

vector with as many rows as the minimum of the number of rows and<br />

the number of columns in the argument. The ith element of the result<br />

is the value in row i, column i, of the argument.<br />

EOF(file) End of file indicator. Normally used after a READ statement. Takes a<br />

single argument, which must be either a filename in apostrophes or<br />

quotation marks, or a file handle defined on a FILE HANDLE command<br />

that precedes the matrix program. Returns a scalar equal to 1 if the last<br />

attempt to read that file encountered the last record in the file, and<br />

equal to 0 if the last attempt did not encounter the last record in the file.<br />

Calling the EOF function causes a REREAD specification on the READ<br />

statement to be ignored on the next attempt to read the file.<br />

EVAL(M) Eigenvalues of a symmetric matrix. Takes a single argument, which<br />

must be a symmetric matrix. Returns a column vector with the same<br />

number of rows as the argument, containing the eigenvalues of the<br />

argument in decreasing numerical order.<br />

EXP(M) Exponentials of matrix elements. Takes a single argument. Returns a<br />

matrix having the same dimensions as the argument, in which each<br />

element equals e raised to the power of the corresponding element in<br />

the argument matrix.<br />

FCDF(M,S1,S2) Cumulative F distribution function of elements. Takes three<br />

arguments, a matrix of F values and two scalars giving the degrees<br />

of freedom (which must be positive). Returns a matrix having the<br />

same dimensions as the first argument M, containing the values of<br />

the cumulative F distribution function for each of its elements. If an<br />

element of the first argument is x and the second and third arguments<br />

are S1 and S2, the corresponding element of the result is a number<br />

between 0 and 1, giving the proportion of an F distribution with S1<br />

and S2 degrees of freedom that is less than x. If x is not positive, the<br />

result is 0.<br />

GINV(M) Moore-Penrose generalized inverse of a matrix. Takes a single argument.<br />

Returns a matrix with the same dimensions as the transpose of<br />

the argument. If A is the generalized inverse of a matrix M, then<br />

M*A*M=M and A*M*A=A. Both A*M and M*Aare<br />

symmetric.<br />

GRADE(M) Ranks elements in a matrix. Takes a single argument. Uses sequential<br />

integers for ties.<br />

GSCH(M) Gram-Schmidt orthonormal basis for the space spanned by the column<br />

vectors of a matrix. Takes a single argument, in which there must be as<br />

many linearly independent columns as there are rows. (That is, the rank<br />

of the argument must equal the number of rows.) Returns a square<br />

matrix with as many rows as the argument. The columns of the result<br />

form a basis for the space spanned by the columns of the argument.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!