Skip to content

Commit

Permalink
add unit tests for bayesglm.fit (issue #67)
Browse files Browse the repository at this point in the history
  • Loading branch information
merliseclyde committed Nov 17, 2022
1 parent 5118a50 commit 0be6032
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-bas-glm.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
context("bas.glm")


test_that("bas.glm initprobs" , {
data(Pima.tr, package="MASS")
expect_error(bas.glm(type ~ .,
Expand Down
9 changes: 9 additions & 0 deletions tests/testthat/test-glm-fit.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
context("bayesglm fit")

# Github issue #67
test_that("bayesglm.fit", {
data(Pima.tr, package="MASS")
expect_error(bayesglm.fit(y = cbind((Pima.tr$type == "Yes"), 5.0), x = 1.0*Pima.tr$age,
family=binomial(), coefprior=bic.prior(100)))

})

0 comments on commit 0be6032

Please sign in to comment.