# \donttest{
data("apparelTrans")
# Fit gg model on data
apparel.holdout <- clvdata(apparelTrans, time.unit="w",
estimation.split = 52, date.format = "ymd")
apparel.gg <- gg(apparel.holdout)
# Estimate customers' mean spending per transaction
predict(apparel.gg)
# Estimate the mean spending per transaction a single,
# fictional, average new customer is expected to make
# See ?newcustomer.spending() for more examples
predict(apparel.gg, newdata=newcustomer.spending())
# }
Run the code above in your browser using DataLab