forked from AdrianAntico/AutoQuant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutoMarketBasketModel.Rd
61 lines (53 loc) · 1.78 KB
/
AutoMarketBasketModel.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AutoMarketBasketModel.R
\name{AutoMarketBasketModel}
\alias{AutoMarketBasketModel}
\title{AutoMarketBasketModel function runs a market basket analysis automatically}
\usage{
AutoMarketBasketModel(
data,
OrderIDColumnName,
ItemIDColumnName,
LHS_Delimeter = ",",
Support = 0.001,
Confidence = 0.1,
MaxLength = 2,
MinLength = 2,
MaxTime = 5
)
}
\arguments{
\item{data}{This is your transactions data set}
\item{OrderIDColumnName}{Supply your column name for the Order ID Values}
\item{ItemIDColumnName}{Supply your column name for the Item ID Values}
\item{LHS_Delimeter}{Default delimeter for separating multiple ItemID's is a comma.}
\item{Support}{Threshold for inclusion using support}
\item{Confidence}{Threshold for inclusion using confidence}
\item{MaxLength}{Maximum combinations of Item ID (number of items in basket to consider)}
\item{MinLength}{Minimum length of combinations of ItemID (number of items in basket to consider)}
\item{MaxTime}{Max run time per iteration (default is 5 seconds)}
}
\description{
AutoMarketBasketModel function runs a market basket analysis automatically. It will convert your data, run the algorithm, and add on additional significance values not orginally contained within.
}
\examples{
\donttest{
rules_data <- AutoMarketBasketModel(
data,
OrderIDColumnName = "OrderNumber",
ItemIDColumnName = "ItemNumber",
LHS_Delimeter = ",",
Support = 0.001,
Confidence = 0.1,
MaxLength = 2,
MinLength = 2,
MaxTime = 5)
}
}
\seealso{
Chi-sq statistics and p-values based on this paper: http://www.cs.bc.edu/~alvarez/ChiSquare/chi2tr.pdf
}
\author{
Adrian Antico and Douglas Pestana
}
\concept{Recommender Systems}