LoslegenKostenlos loslegen

Confidence and lift measures

You are now ready to calculate the confidence and lift measures for different rules. This will enable you to get a feeling for the likelihood and the degree of confidence of various association rules.

You need to make sure to only look at the first few records of extracted rules as the number of rules can be very large. Having the possibility of sorting rules according to a specific metric is definitely a must.

The transactional object Online_trx is loaded in the workspace.

Diese Übung ist Teil des Kurses

Market Basket Analysis in R

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Call the apriori function with apropriate parameters
rules_all = apriori(___,
                      ___ = list(___=0.01, conf = ___)
)
Code bearbeiten und ausführen