# \donttest{
data("apparelTrans")
# Fit gg model on data
apparel.holdout <- clvdata(apparelTrans, time.unit="w",
estimation.split=37, date.format="ymd")
apparel.gg <- gg(apparel.holdout)
# Predict customers' future mean spending per transaction
predict(apparel.gg)
# }
Run the code above in your browser using DataLab