Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2023-01-14 22:06:48
Size: 770
Comment:
Revision 4 as of 2023-06-11 21:03:42
Size: 4427
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

The '''`MULT RESPONSE`''' command tabulates '''multiple-response sets'''.
Line 11: Line 13:
The `MULT RESPONSE` command tabulates a series of variables representing survey multiple response question. {{{
mult response /groups=FOOBARBAZ (foo to baz (1)) /frequencies=FOOBARBAZ.
mult response /groups=FOOBARBAZ "Foo, bar, and baz" (foo to baz (1)) /frequencies=FOOBARBAZ.
}}}
Line 13: Line 18:
{{{
mult response /group=$FOO (FOO_1 FOO_2 FOO_3 (1)) /frequencies=$FOO
}}}
The '''`/GROUPS`''' subcommand defines the series of variables that represent a '''multiple-dichotomy group''' (nested within parentheses), as well as the value representing a selection (further nested within parentheses). The variable labels from each component variable become the value labels on the created table.

To define a '''multiple-response group''', specify a range of values as `(MIN,MAX)`. (This is useful if, for example, `foo` represents both a selection from a set ''as well as'' a category or rank.) The value labels from the first component variable become the value labels on the created table.

The optional label can be up to 40 characters long.
Line 19: Line 26:
=== Group === === Variables ===
Line 21: Line 28:
The '''`GROUP`''' subcommand defines a series of variables that represent a multiple response question. The '''`/VARIABLES`''' subcommand specifies numeric variables that should be additionally tabulated. This subcommand must follow the `/GROUPS` subcommand.
Line 23: Line 30:
Groups defined in this manner should be named with a leading dollar sign (`$`). Variables must be specified with a range of valid values, so that the same number of cells can be allocated across the multiple-response set. The range is specified as `(MIN,MAX)`.
Line 25: Line 32:
The series is followed by the value that should be expected in each variable to indicate a response. Typically this is 1, but it can be configured. {{{
mult response
  /groups=FOOBARBAZ (foo to baz (1))
  /variables=ham (1,2) spam eggs (1,5)
  /table=FOOBARBAZ by ham spam eggs.
}}}

Note that values are truncated to integers for all tabulations.
Line 31: Line 45:
The '''`FREQUENCIES`''' subcommand specifies the group of variables to tabulate. The '''`/FREQUENCIES`''' subcommand creates a tabulation. To tabulate any variable other than one created on the `/GROUP` subcommand, add a `/VARIABLES` subcommand first.



=== Tables ===

The '''`/TABLES`''' subcommand creates a cross-tabulation. To tabulate any variable other than a multiple response group, add a `/VARIABLES` subcommand first.

By default, when two multiple response groups are cross-tabulated, SPSS will tabulate each component variable in the first group by each component variable in the second group and sum the counts for each cell. In other words, responses are potentially counted multiple times.

If instead two multiple response groups should be pair-wise cross-tabulated, add the '''`(PAIRED)`''' option.

{{{
mult response /groups=FOOBARBAZ (foo to baz (1)) HAMSPAMEGGS (ham spam eggs (1))
  /tables=FOOBARBAZ by HAMSPAMEGGS (paired).
}}}



=== Cells ===

The default '''`/CELLS`''' subcommand is `/CELLS=COUNT`. This causes table cells to be populated with counts of observations.

Options are:

||'''Name''' ||'''Effect''' ||
||`COUNT` ||count ||
||`ROW` ||row percent ||
||`COLUMN` ||column percent ||
||`TOTAL` ||table percent ||
||`ALL` ||all of the above ||

If the `/CELLS` subcommand is specified without any options, the `COUNT`, `ROW`, `COLUMN`, and `TOTAL` options are selected automatically.



=== Missing ===

By default, SPSS will exclude observations with a user missing value for a tabulated variable even when the user missing value is included in the value range. Add the '''`/MISSING=TABLE`''' subcommand to explicitly allow this behavior, or add '''`/MISSING=INCLUDE`''' subcommand to disable it.

Add the '''`/MISSING=MDGROUP`''' subcommand to exclude cases with any missing values among the component variables of a multiple-dichotomy group.

Add the '''`/MISSING=MCGROUP`''' subcommand to exclude cases with any missing values among the component variables of a multiple-category group.



=== Base ===

By default, SPSS will use the number of observations included in a table as the base for computing percentages. This means that any respondent without a single response counted is excluded from the base.

If the `PAIRED` option is set, SPSS will instead use the number of responses counted the table as the base for computing percentages.

To explicitly use the first strategy, add the '''`/BASE=CASES`''' subcommand. To explicitly use the second strategy, add the '''`/BASE=RESPONSES`''' subcommand.

----



== Data Model ==

The `MULT RESPONSE` command causes all pending transformations to execute, and reads the active dataset.

SPSS Mult Response

The MULT RESPONSE command tabulates multiple-response sets.


Usage

mult response /groups=FOOBARBAZ (foo to baz (1)) /frequencies=FOOBARBAZ.
mult response /groups=FOOBARBAZ "Foo, bar, and baz" (foo to baz (1)) /frequencies=FOOBARBAZ.

The /GROUPS subcommand defines the series of variables that represent a multiple-dichotomy group (nested within parentheses), as well as the value representing a selection (further nested within parentheses). The variable labels from each component variable become the value labels on the created table.

To define a multiple-response group, specify a range of values as (MIN,MAX). (This is useful if, for example, foo represents both a selection from a set as well as a category or rank.) The value labels from the first component variable become the value labels on the created table.

The optional label can be up to 40 characters long.

Variables

The /VARIABLES subcommand specifies numeric variables that should be additionally tabulated. This subcommand must follow the /GROUPS subcommand.

Variables must be specified with a range of valid values, so that the same number of cells can be allocated across the multiple-response set. The range is specified as (MIN,MAX).

mult response
  /groups=FOOBARBAZ (foo to baz (1))
  /variables=ham (1,2) spam eggs (1,5)
  /table=FOOBARBAZ by ham spam eggs.

Note that values are truncated to integers for all tabulations.

Frequencies

The /FREQUENCIES subcommand creates a tabulation. To tabulate any variable other than one created on the /GROUP subcommand, add a /VARIABLES subcommand first.

Tables

The /TABLES subcommand creates a cross-tabulation. To tabulate any variable other than a multiple response group, add a /VARIABLES subcommand first.

By default, when two multiple response groups are cross-tabulated, SPSS will tabulate each component variable in the first group by each component variable in the second group and sum the counts for each cell. In other words, responses are potentially counted multiple times.

If instead two multiple response groups should be pair-wise cross-tabulated, add the (PAIRED) option.

mult response /groups=FOOBARBAZ (foo to baz (1)) HAMSPAMEGGS (ham spam eggs (1))
  /tables=FOOBARBAZ by HAMSPAMEGGS (paired).

Cells

The default /CELLS subcommand is /CELLS=COUNT. This causes table cells to be populated with counts of observations.

Options are:

Name

Effect

COUNT

count

ROW

row percent

COLUMN

column percent

TOTAL

table percent

ALL

all of the above

If the /CELLS subcommand is specified without any options, the COUNT, ROW, COLUMN, and TOTAL options are selected automatically.

Missing

By default, SPSS will exclude observations with a user missing value for a tabulated variable even when the user missing value is included in the value range. Add the /MISSING=TABLE subcommand to explicitly allow this behavior, or add /MISSING=INCLUDE subcommand to disable it.

Add the /MISSING=MDGROUP subcommand to exclude cases with any missing values among the component variables of a multiple-dichotomy group.

Add the /MISSING=MCGROUP subcommand to exclude cases with any missing values among the component variables of a multiple-category group.

Base

By default, SPSS will use the number of observations included in a table as the base for computing percentages. This means that any respondent without a single response counted is excluded from the base.

If the PAIRED option is set, SPSS will instead use the number of responses counted the table as the base for computing percentages.

To explicitly use the first strategy, add the /BASE=CASES subcommand. To explicitly use the second strategy, add the /BASE=RESPONSES subcommand.


Data Model

The MULT RESPONSE command causes all pending transformations to execute, and reads the active dataset.


CategoryRicottone

SPSS/MultResponse (last edited 2023-06-11 21:03:42 by DominicRicottone)