spss.GetMultiResponseSet Function (Python)

spss.GetMultiResponseSet(mrsetName). Returns the details of the specified multiple response set. The argument mrsetName is a string that specifies the name of the multiple response set--for instance, a name returned by GetMultiResponseSetNames.

  • The result is a tuple of 5 elements. The first element is the label, if any, for the set. The second element specifies the variable coding--'Categories' or 'Dichotomies'. The third element specifies the counted value and only applies to multiple dichotomy sets. The fourth element specifies the data type--'Numeric' or 'String'. The fifth element is a list of the elementary variables that define the set.

Example

# Build a Python dictionary of the multiple response sets
import spss
dict = {}
for name in spss.GetMultiResponseSetNames():
  dict[name]=spss.GetMultiResponseSet(name)