Skip to content

Commit

Permalink
coxme fails (#965)
Browse files Browse the repository at this point in the history
Fixes #964
  • Loading branch information
strengejacke authored Apr 26, 2024
1 parent 6ba3754 commit b76df8f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: parameters
Title: Processing of Model Parameters
Version: 0.21.6.3
Version: 0.21.6.4
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down Expand Up @@ -109,6 +109,7 @@ Suggests:
clubSandwich,
cluster,
coda,
coxme,
cplm,
dbscan,
domir (>= 0.2.0),
Expand Down
18 changes: 18 additions & 0 deletions tests/testthat/test-model_parameters.coxme.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
skip_on_cran()
skip_if_not_installed("coxme")
skip_if_not_installed("survival")

# modelparameters ----------------------------------

test_that("model_parameters.coxme", {
data(eortc, package = "coxme")
d <- coxme::eortc
d$surv <- survival::Surv(d$y, d$uncens)
m1 <- coxme::coxme(surv ~ trt + (1 | center), data = d)
out <- model_parameters(m1)
expect_named(
out,
c("Parameter", "Coefficient", "SE", "CI", "CI_low", "CI_high", "z", "df_error", "p")
)
expect_equal(out$Coefficient, 0.7086127, tolerance = 1e-4)
})

0 comments on commit b76df8f

Please sign in to comment.