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.

ROC 1443<br />

• The test result variable must be numeric, but the state variable can be any type with any<br />

format.<br />

• Subcommands can be specified in any order.<br />

• When a subcommand is duplicated, only the last one is honored given that all duplicates<br />

have no syntax errors. A syntax warning is issued.<br />

• Within a subcommand, if two or more exclusive or contradictory keywords are given, the<br />

latter keywords override the earlier ones. A syntax warning is issued.<br />

• If a keyword is duplicated within a subcommand, it is silently ignored.<br />

Limitations<br />

Example<br />

• Only the nonparametric method and one parametric method are available as the computational<br />

options for the standard error of the area under the curve at this moment. In the<br />

future, binormal and bilogistic distributions may be added to the parametric option.<br />

ROC<br />

pred BY default (1)<br />

/PLOT = CURVE<br />

/CRITERIA = CUTOFF(INCLUDE) TESTPOS(LARGE)<br />

DISTRIBUTION(FREE) CI(95)<br />

/MISSING = EXCLUDE .<br />

• pred is the test result variable, and default is the actual state variable. The “positive” group<br />

is identified by the value 1.<br />

• The PLOT subcommand specifies that the ROC curve chart should be displayed without<br />

the diagonal reference line.<br />

• CRITERIA specifies that classification of values of the test result variable as members of<br />

the “positive” group includes values greater than or equal to the cutoff values, the standard<br />

error of the area under the curve is to be estimated nonparametrically, and the confidence<br />

level for the asymptotic interval for the area under the curve is 95.<br />

• MISSING specifies that both user-missing and system-missing values are excluded.<br />

• No optional table output is printed.<br />

varlist BY varname(varvalue)<br />

The varlist specifies one or more test result variables. They must be of numeric type.<br />

The varname separated from the varlist by the word BY specifies the actual state variable.<br />

It can be of any type and any format. The user must also specify a varvalue in brackets after<br />

the second varname to define the “positive” group of the actual state variable. All other valid<br />

state values are assumed to indicate the negative group.

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

Saved successfully!

Ooh no, something went wrong!