Previous: Scalar Variables, Up: Basics [Contents][Index]
By default, CTABLES
uses a variable’s measurement level to
decide whether to treat it as categorical or scalar. Variables
assigned the nominal or ordinal measurement level are treated as
categorical, and scalar variables are treated as scalar.
When PSPP reads data from a file in an external format, such as a
text file, variables’ measurement levels are often unknown. If
CTABLES
runs when a variable has an unknown measurement level,
it makes an initial pass through the data to guess measurement levels
using the rules described in an earlier section (see Measurement Level). Use the VARIABLE LEVEL
command to set or change a
variable’s measurement level (see VARIABLE LEVEL).
To treat a variable as categorical or scalar only for one use on
CTABLES
, add ‘[C]’ or ‘[S]’, respectively, after the
variable name. The following example shows the output when variable
monthDaysMin1drink
is analyzed as scalar (the default for its measurement
level) and as categorical:
CTABLES /TABLE monthDaysMin1drink BY gender /TABLE monthDaysMin1drink [C] BY gender.
|
Previous: Scalar Variables, Up: Basics [Contents][Index]