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.

MATRIX—END MATRIX 917<br />

signs; and the splitting of statements across multiple lines. However, commas are required to<br />

separate arguments to matrix functions and procedures and to separate variable names on the<br />

RELEASE statement.<br />

Matrix statements are composed of the following elements:<br />

• Keywords, such as the names of matrix statements.<br />

• Variable names.<br />

• Explicitly written matrices, which are enclosed within braces ({}).<br />

• Arithmetic and logical operators.<br />

• Matrix functions.<br />

• The SPSS command terminator, which serves as a statement terminator within a matrix<br />

program.<br />

Comments in Matrix Programs<br />

Within a matrix program, you can enter comments in any of the forms recognized by SPSS:<br />

on lines beginning with the COMMENT command, on lines beginning with an asterisk, or between<br />

the characters /* and */ on a command line.<br />

Matrix Notation in SPSS<br />

To write a matrix explicitly:<br />

• Enclose the matrix within braces ({}).<br />

• Separate the elements of each row by commas.<br />

• Separate the rows by semicolons.<br />

• String elements must be enclosed in either apostrophes or quotation marks, as is generally<br />

true in the SPSS command language.<br />

Example<br />

{1,2,3;4,5,6}<br />

• The example represents the following matrix:<br />

123<br />

456<br />

Example<br />

{1,2,3}<br />

• This example represents a row vector:<br />

123

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

Saved successfully!

Ooh no, something went wrong!