tests/testthat/test_inputchecks_pnbd_nocov.R

data("cdnow")

l.illegal.start.params.model <- list(c(alpha=0,  beta=1, r=1, s=1),
                                     c(alpha=-1, beta=1, r=1, s=1),
                                     c(alpha=1,  beta=1, r=0, s=1))


fct.testthat.inputchecks.clvfittedtransactions.nocov(name.method = "PNBD", method=pnbd,
                                                     start.params.model=c(r=1.234, alpha=0.678, s=2.345, beta=0.1111),
                                                     l.illegal.start.params.model = l.illegal.start.params.model,
                                                     has.cor = TRUE,
                                                     data.cdnow = cdnow)

Try the CLVTools package in your browser

Any scripts or data that you put into this service are public.

CLVTools documentation built on Oct. 24, 2023, 1:06 a.m.