jomulder / BFpack

BFpack can be used for testing statistical hypotheses using the Bayes factor, a Bayesian criterion originally developed by sir Harold Jeffreys.
https://bfpack.info/
14 stars 4 forks source link

Added skeleton test examples for glm, coxph and glmerMod classes #8

Closed Jaeoc closed 5 years ago

Jaeoc commented 5 years ago

Hi Joris,

You asked me to send you some examples for these classes so that you could add them to the test files, I figured it was quicker to just add test files for them straight away.

I looked at the structure for your other test-files and basically copied that, although it's not clear to me that your tests are testing anything since they don't contain any test_that() statements?

cjvanlissa commented 5 years ago

I moved any code that executes the function from the function definition files to test_that files, to stop the package from crashing upon build when it's trying to call itself ;) I have not actually built tests around this code, but you could do so if you want! See my package tidyLPA for how to do this: https://github.com/data-edu/tidyLPA/tree/master/tests/testthat