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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

934 MATRIX—END MATRIX<br />

and the number of columns of the matrix. In other words, the pivot<br />

element of the matrix, which is M(S,S), must exist. Returns a matrix<br />

of the same dimensions as M. Suppose that S={k} and<br />

A=SWEEP(M,S). If M(k,k) is not 0, then<br />

Akk ( , ) = 1 ⁄ Mkk ( , )<br />

Aik ( , ) = – Mik ( , ) ⁄ Mkk ( , ) for i notequaltok<br />

Akj ( , ) = Mkj ( , ) ⁄ ( Mkk ( , ) ) for j not equal to k<br />

Aij ( , ) = ( Mkk ( , )*M( i, j)<br />

– Mik ( , )*M( k, j)<br />

) ⁄ Mkk ( , )<br />

for i,j not equal to k<br />

and if M(k,k) equals 0, then<br />

Aik ( , ) = Aki ( , ) = 0 for all i<br />

Aij ( , ) =<br />

Mij ( , ) for i,j not equal to k<br />

TCDF(M,S) Cumulative t distribution function of elements. Takes two arguments,<br />

a matrix of t values and a scalar giving the degrees of freedom (which<br />

must be positive). Returns a matrix having the same dimensions as M,<br />

containing the values of the cumulative t distribution function for each<br />

of its elements. If an element of the first argument is x and the second<br />

argument is S, then the corresponding element of the result is a number<br />

between 0 and 1, giving the proportion of a t distribution with S<br />

degrees of freedom that is less than x.<br />

TRACE(M) Sum of the main diagonal elements. Takes a single argument. Returns<br />

a scalar, which equals the sum of the elements on the main diagonal<br />

of the argument.<br />

TRANSPOS(M) Transpose of the matrix. Takes a single argument. Returns the transpose<br />

of the argument. TRANSPOS can be shortened to T.<br />

TRUNC(M) Truncation of elements to integers. Takes a single argument. Returns a<br />

matrix having the same dimensions as the argument, whose elements<br />

equal the corresponding elements of the argument truncated to integers.<br />

UNIFORM(S1,S2) Uniformly distributed pseudo-random numbers between 0 and 1.<br />

Takes two scalars as arguments. Returns a matrix with the number of<br />

rows specified by the first argument and the number of columns specified<br />

by the second argument, containing pseudo-random numbers<br />

uniformly distributed between 0 and 1.<br />

CALL Statement<br />

Closely related to the matrix functions are the matrix procedures, which are invoked with the<br />

CALL statement. Procedures, similarly to functions, accept arguments enclosed in parentheses<br />

and separated by commas. They return their result in one or more of the arguments as noted<br />

in the individual descriptions below. They are implemented as procedures rather than as functions<br />

so that they can return more than one value or (in the case of SETDIAG) modify a matrix<br />

without making a copy of it.<br />

EIGEN(M,var1,var2) Eigenvectors and eigenvalues of a symmetric matrix. Takes three<br />

arguments: a symmetric matrix and two valid variable names to which

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

Saved successfully!

Ooh no, something went wrong!