Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- checkmate
- emmeans
- formatters
- geeasy
- Matrix
- geepack
- nlme
- rtables
Expand Down
27 changes: 20 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ Authors@R: c(
person("Joe", "Zhu", , "joe.zhu@roche.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-7566-2787")),
person("Emily", "de la Rua", , "emily.de_la_rua@contractors.roche.com", role = "aut"),
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd"))
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd")),
person("Anne Helby", "Petersen", role = c("ctb", "cph"),
comment = "Author of the 'geeasy' code adapted in R/geelm.R"),
person("Lee", "McDaniel", role = c("ctb", "cph"),
comment = "Author of the 'geeM' code adapted in R/geelm.R"),
person("Nick", "Henderson", role = c("ctb", "cph"),
comment = "Author of the 'geeM' code adapted in R/geelm.R"),
person("Melanie", "Prague", role = "ctb",
comment = "Contributed weighting code to 'geeM'"),
person("Søren", "Højsgaard", role = c("ctb", "cph"),
comment = "Author of the 'geeasy' code adapted in R/geelm.R")
)
Description: Generalized estimating equations (GEE) are a popular choice
for analyzing longitudinal binary outcomes. This package provides an
Expand All @@ -18,8 +28,10 @@ Description: Generalized estimating equations (GEE) are a popular choice
Sabanés Bové et al., 2023) and tabulate results easily using 'rtables'
<https://cran.r-project.org/package=rtables> (Becker, Waddell et al.,
2023). It builds on 'geepack' <doi:10.18637/jss.v015.i02> (Højsgaard,
Halekoh and Yan, 2006) for the actual GEE model fitting.
License: Apache License 2.0
Halekoh and Yan, 2006) and adapts the GEE fitting engine of 'geeasy'
<https://cran.r-project.org/package=geeasy> (Petersen, McDaniel and
Højsgaard).
License: GPL-3
URL: https://insightsengineering.github.io/tern.gee/,
https://github.com/insightsengineering/tern.gee/
BugReports: https://github.com/insightsengineering/tern.gee/issues
Expand All @@ -30,8 +42,9 @@ Imports:
checkmate (>= 2.1.0),
emmeans (>= 1.10.4),
formatters (>= 0.5.12),
geeasy,
geepack,
Matrix,
methods,
nlme,
rtables (>= 0.6.17),
stats
Expand All @@ -47,11 +60,11 @@ VignetteBuilder:
knitr,
rmarkdown
Config/Needs/verdepcheck: insightsengineering/tern, mllg/checkmate,
rvlenth/emmeans, insightsengineering/formatters, annennenne/geeasy,
cran/geepack, cran/nlme, insightsengineering/rtables, tidyverse/dplyr,
rvlenth/emmeans, insightsengineering/formatters, cran/geepack,
cran/Matrix, cran/nlme, insightsengineering/rtables, tidyverse/dplyr,
yihui/knitr, rstudio/rmarkdown, r-lib/testthat, r-lib/vdiffr,
r-lib/withr
Config/roxygen2/version: 8.1.0
Config/roxygen2/version: 8.1.1
Config/testthat/edition: 3
Encoding: UTF-8
Language: en-US
Expand Down
13 changes: 9 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ export(lsmeans)
export(s_lsmeans_logistic)
export(summarize_gee_logistic)
export(vars_gee)
import(Matrix)
import(checkmate)
import(rtables)
importFrom(emmeans,emmeans)
importFrom(geepack,QIC)
importFrom(nlme,VarCorr)
importFrom(rtables,add_colcounts)
importFrom(stats,acf)
importFrom(stats,as.formula)
importFrom(tern,as.rtable)
importFrom(tern,f_conf_level)
importFrom(stats,
acf,
as.formula
)
importFrom(tern,
as.rtable,
f_conf_level
)
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# tern.gee 0.1.6.9000

* Removed the dependency on `geeasy`. The GEE fitting engine needed by `fit_gee()` (adapted from
`geeasy` and `geeM`) is now part of `tern.gee`, with `Matrix` as a new dependency.
* Changed the package license to GPL-3, as required by the adapted `geeasy` / `geeM` code.
* Fixed `summary()` failing on `fit_gee()` results when the data contain missing values
(an issue inherited from `geeasy`).
# Up version `rtables` package version to 0.6.17.

# tern.gee 0.1.5
Expand Down
4 changes: 2 additions & 2 deletions R/fit_gee.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ build_family <- function(regression) {
list(
object = result_object,
class = result_class,
control = geeasy::geelm.control(scale.fix = TRUE)
control = geelm_control(scale.fix = TRUE)
)
}

Expand Down Expand Up @@ -154,7 +154,7 @@ fit_gee <- function(vars = vars_gee(),
cor_struct <- match.arg(cor_struct)
cor_details <- build_cor_details(cor_struct, vars, data)

fit <- geeasy::geelm(
fit <- geelm(
formula = formula,
id = .id,
waves = .waves,
Expand Down
Loading
Loading