-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
mcmc.ExpectedCumulativeTransactions
for Pareto/NBD (Abe) (#57)
* - fix `mcmc.ExpectedCumulativeTransactions` for Pareto/NBD (Abe) with covariates (#55) - add ability to provide covariates to `abe.generateData` * fix code style
- Loading branch information
Showing
10 changed files
with
116 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5178098
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests/testthat/test-bg-cnbd-k.R:31:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:36:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:37:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:38:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:39:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:40:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:42:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:43:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:45:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:47:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:51:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:69:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:76:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:77:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:5:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:6:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:7:14: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-elog2cbs.R:19:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:20:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:28:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:30:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:32:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:34:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:37:16: style: Variable and function names should be all lowercase.
tests/testthat/test-elog2cbs.R:38:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:38:16: style: Variable and function names should be all lowercase.
tests/testthat/test-elog2cbs.R:42:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:42:16: style: Variable and function names should be all lowercase.
tests/testthat/test-elog2cbs.R:47:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:47:16: style: Variable and function names should be all lowercase.
tests/testthat/test-elog2cbs.R:52:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:53:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:54:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:57:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:65:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:66:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:67:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:8:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:12:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:25:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:28:15: style: Variable and function names should be all lowercase.
tests/testthat/test-helpers.R:29:21: style: Variable and function names should be all lowercase.
tests/testthat/test-helpers.R:37:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:39:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:39:77: style: Variable and function names should be all lowercase.
tests/testthat/test-helpers.R:41:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:51:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:52:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:53:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:57:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:20:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:28:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:47:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:48:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:51:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:55:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:56:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:57:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:67:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:17:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:20:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:25:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:32:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:35:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:37:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:38:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:46:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:46:42: style: Place a space before left parenthesis, except in a function call.
tests/testthat/test-mcmc.R:85:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:86:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:99:1: style: lines should not be more than 80 characters.
tests/testthat/test-nbd.R:18:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-ggg-mcmc.R:12:37: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-pareto-ggg-mcmc.R:13:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-ggg-mcmc.R:14:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-ggg-mcmc.R:16:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:9:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:12:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:14:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:15:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:18:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:21:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:22:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:26:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:27:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:32:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:40:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:48:36: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-pareto-nbd-abe.R:49:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:50:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:50:36: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-pareto-nbd-abe.R:51:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:54:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:57:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:58:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:59:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:67:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:70:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:71:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:95:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:103:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:17:16: style: Variable and function names should be all lowercase.
tests/testthat/test-pareto-nbd-mcmc.R:30:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:61:37: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-pareto-nbd-mcmc.R:62:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:63:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:95:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:96:1: style: lines should not be more than 80 characters.
tests/testthat/test-timing.R:17:1: style: lines should not be more than 80 characters.
tests/testthat/test-timing.R:21:1: style: lines should not be more than 80 characters.
tests/testthat/test-timing.R:22:1: style: lines should not be more than 80 characters.
5178098
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests/testthat/test-bg-cnbd-k.R:31:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:36:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:37:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:38:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:39:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:40:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:42:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:43:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:45:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:47:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:51:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:69:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:76:1: style: lines should not be more than 80 characters.
tests/testthat/test-bg-cnbd-k.R:77:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:5:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:6:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:7:14: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-elog2cbs.R:19:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:20:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:28:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:30:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:32:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:34:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:37:16: style: Variable and function names should be all lowercase.
tests/testthat/test-elog2cbs.R:38:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:38:16: style: Variable and function names should be all lowercase.
tests/testthat/test-elog2cbs.R:42:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:42:16: style: Variable and function names should be all lowercase.
tests/testthat/test-elog2cbs.R:47:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:47:16: style: Variable and function names should be all lowercase.
tests/testthat/test-elog2cbs.R:52:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:53:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:54:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:57:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:65:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:66:1: style: lines should not be more than 80 characters.
tests/testthat/test-elog2cbs.R:67:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:8:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:12:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:25:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:28:15: style: Variable and function names should be all lowercase.
tests/testthat/test-helpers.R:29:21: style: Variable and function names should be all lowercase.
tests/testthat/test-helpers.R:37:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:39:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:39:77: style: Variable and function names should be all lowercase.
tests/testthat/test-helpers.R:41:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:51:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:52:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:53:1: style: lines should not be more than 80 characters.
tests/testthat/test-helpers.R:57:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:20:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:28:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:47:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:48:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:51:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:55:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:56:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:57:1: style: lines should not be more than 80 characters.
tests/testthat/test-mbg-cnbd-k.R:67:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:17:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:20:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:25:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:32:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:35:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:37:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:38:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:46:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:46:42: style: Place a space before left parenthesis, except in a function call.
tests/testthat/test-mcmc.R:85:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:86:1: style: lines should not be more than 80 characters.
tests/testthat/test-mcmc.R:99:1: style: lines should not be more than 80 characters.
tests/testthat/test-nbd.R:18:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-ggg-mcmc.R:12:37: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-pareto-ggg-mcmc.R:13:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-ggg-mcmc.R:14:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-ggg-mcmc.R:16:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:9:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:12:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:14:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:15:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:18:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:21:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:22:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:26:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:27:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:32:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:40:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:48:36: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-pareto-nbd-abe.R:49:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:50:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:50:36: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-pareto-nbd-abe.R:51:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:54:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:57:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:58:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:59:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:67:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:70:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:71:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:95:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-abe.R:103:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:17:16: style: Variable and function names should be all lowercase.
tests/testthat/test-pareto-nbd-mcmc.R:30:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:61:37: style: Words within variable and function names should be separated by '_' rather than '.'.
tests/testthat/test-pareto-nbd-mcmc.R:62:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:63:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:95:1: style: lines should not be more than 80 characters.
tests/testthat/test-pareto-nbd-mcmc.R:96:1: style: lines should not be more than 80 characters.
tests/testthat/test-timing.R:17:1: style: lines should not be more than 80 characters.
tests/testthat/test-timing.R:21:1: style: lines should not be more than 80 characters.
tests/testthat/test-timing.R:22:1: style: lines should not be more than 80 characters.