Skip to content

Commit

Permalink
test for error reported by Marcin Błażejowski in BAS 1.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
merliseclyde committed Mar 30, 2024
1 parent da0da4f commit 8fcded7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/testthat/test-logit-BIC-coef.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
test_that("coef in logig glm", {
Nrep = 1000

# We load dataset
data("birthwt", package = "MASS")

birthwt$race <- as.factor(birthwt$race)

# bas.glm
set.seed(1000000)
birthwt.bas.glm <- bas.glm(low ~ . -bwt, data=birthwt,
family=binomial(link = "logit"),
method="MCMC",
MCMC.iterations=Nrep,
laplace=TRUE)
expect_no_error(coef(birthwt.bas.glm))
})

0 comments on commit 8fcded7

Please sign in to comment.