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.

mean of the applicable ranks. For example, if:<br />

– 1 – 21.7 8<br />

M = 0 3.91 – 21.7 , then: RNKORDER( M)<br />

=<br />

8 9 10<br />

MATRIX—END MATRIX 933<br />

3 1.5 6.5<br />

4 5 1.5<br />

6.5 8 9<br />

RSSQ(M) Row sums of squares. Takes a single argument. Returns a column<br />

vector having the same number of rows as the argument. Each row of<br />

the result contains the sum of the squared values of the elements in the<br />

corresponding row of the argument.<br />

RSUM(M) Row sums. Takes a single argument. Returns a column vector having the<br />

same number of rows as the argument. Each row of the result contains<br />

the sum of the elements in the corresponding row of the argument.<br />

SIN(M) Sines. Takes a single argument. Returns a matrix having the same<br />

dimensions as the argument, containing the sines of the elements of<br />

the argument. Elements of the argument matrix are assumed to be<br />

measured in radians. To convert degrees to radians, multiply by<br />

π ⁄ 180 , which you can compute as ARTAN( 1)<br />

⁄<br />

45 . For example, the<br />

statement COMPUTE SINES=SIN(DEGREES*ARTAN(1)/45)<br />

computes sines from a matrix containing elements measured in<br />

degrees.<br />

SOLVE(M1,M2) Solution of systems of linear equations. Takes two arguments, the first<br />

of which must be square and nonsingular (its determinant must be<br />

nonzero), and the second of which must have the same number of rows<br />

as the first. Returns a matrix with the same dimensions as the second<br />

argument. If M1*X=M2, then X=SOLVE(M1, M2). In effect, this function<br />

sets its result X equal to INV(M1)*M2.<br />

SQRT(M) Square roots of elements. Takes a single argument, whose elements<br />

must not be negative. Returns a matrix having the same dimensions as<br />

the arguments, whose elements are the positive square roots of the<br />

corresponding elements of the argument.<br />

SSCP(M) Sums of squares and cross-products. Takes a single argument. Returns<br />

a square matrix having as many rows (and columns) as the argument<br />

has columns. SSCP(M) equals T(M)*M, where T is the transpose function<br />

defined below.<br />

SVAL(M) Singular values of a matrix. Takes a single argument. Returns a<br />

column vector containing as many rows as the minimum of the<br />

numbers of rows and columns in the argument, containing the singular<br />

values of the argument in decreasing numerical order. The singular<br />

values of a matrix M are the square roots of the eigenvalues of<br />

T(M)*M, where T is the transpose function discussed below.<br />

SWEEP(M,S) Sweep transformation of a matrix. Takes two arguments, a matrix and<br />

a scalar, which must be less than or equal to both the number of rows

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

Saved successfully!

Ooh no, something went wrong!