The MBANALYSIS Procedure

PROC MBANALYSIS Statement

  • PROC MBANALYSIS options;

The PROC MBANALYSIS statement invokes the procedure.

You must specify the following option:

DATA=CAS-libref.data-table

names the input data table for PROC MBANALYSIS to use. CAS-libref.data-table is a two-level name, where

CAS-libref

refers to a collection of information that is defined in the LIBNAME statement and includes the caslib, which includes a path to the data, and a session identifier, which defaults to the active session but which can be explicitly defined in the LIBNAME statement. For more information about CAS-libref, see the section Using CAS Sessions and CAS Engine Librefs.

data-table

specifies the name of the input data table.

You must specify either of the following options:

SUPPORT=number

specifies the minimum level of support (minimum frequency of an item) for a rule, where number must be an integer greater than or equal to 0. This option overrides the specification of the PCTSUP= option.

PCTSUP=number
SUPPCT=number
SUP_PCT=number
PCTSUPPORT=number

specifies the minimum level of support for a rule as a percentage of the number of baskets in the input data table, where number must be a real number between 0 and 100, inclusive. This option is ignored if the SUPPORT= option is specified.

You can also specify the following options:

ANTECEDENTLIST=(string <string…>)

specifies the regular expression strings to match in the antecedent (left-hand side) of a rule.

CONF=number

specifies the minimum confidence for the rules, where number must be a real number between 0 and 100.

By default, CONF=50.

CONSEQUENTLIST=(string <string…>)

specifies the regular expression strings to match in the consequent (right-hand side) of a rule.

ITEMS=number

specifies the number of items in a rule, where number must be an integer between 1 and 1,000. By default, ITEMS=2 when you specify either an OUT= or OUTRULE= option in the OUTPUT statement; otherwise, ITEMS=1 by default.

LIFT=number

specifies the minimum lift value necessary to generate a rule, where number must be a positive, real number between 0 and 100, inclusive.

By default, LIFT=1.

MAXBSKTSZ=number

specifies the maximum basket size, where number must be a positive integer between 0 and 1,000, inclusive. Baskets whose size is larger than number are rejected.

By default, MAXBSKTSZ=1000.

MINBSKTSZ=number

specifies the minimum basket size, where number must be a positive integer between 0 and 20, inclusive. Baskets whose size is smaller than number are rejected.

By default, MINBSKTSZ=1.

NLHS_RANGE=(number, number)

specifies the range of number of items in the left-hand side (LHS) of a rule.

By default, NLHS_RANGE=(1,1000).

NORM

normalizes the values of the items in the output tables that are specified in the OUTPUT statement.

NRHS_RANGE=(number, number)

specifies the range of number of items in the right-hand side (RHS) of a rule.

By default, NRHS_RANGE=(1,1000).

SEPARATOR=string

specifies the separator character in the antecedent (left-hand side) or consequent (right-hand side) of a rule.

By default, SEPARATOR="&".

SUP_LIFT=number

specifies the minimum support lift necessary to generate a rule, where number must be a positive, real number.

By default, SUP_LIFT=0.

Last updated: November 11, 2020