VAR variables </ options>;
The VAR statement names the variables to be used in the analyses. One-sample comparisons are conducted when the VAR statement is used without the CROSSOVER= option or CLASS statement. Two-independent-sample comparisons are conducted when the VAR statement is used with a CLASS statement.
An AB/BA crossover analysis is conducted when the CROSSOVER=
option is used in the VAR
statement. In this case, you must specify an even number of variables. Each set of two variables represents the responses
in the first and second periods of the AB/BA crossover design. For example, if you use the CROSSOVER=
option and specify VAR x1 x2 x3 x4
, then you will get two analyses. One analysis will have x1
as the period 1 response and x2
as the period 2 response. The other analysis will have x3
as the period 1 response and x4
as the period 2 response.
The VAR statement cannot be used with the PAIRED statement. If the VAR statement is omitted, all numeric variables in the input data set (except a numeric variable appearing in the BY , CLASS , FREQ , or WEIGHT statement) are included in the analysis.
You can specify the following options after a slash (/):