Skip to content

Commit

Permalink
Merge branch 'main' into mmrm-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Aug 31, 2024
2 parents c6730c4 + 5497229 commit 9dd18c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: marginaleffects
Title: Predictions, Comparisons, Slopes, Marginal Means, and Hypothesis Tests
Version: 0.21.0.22
Version: 0.22.0
Authors@R:
c(person(given = "Vincent",
family = "Arel-Bundock",
Expand Down Expand Up @@ -31,10 +31,9 @@ Imports:
checkmate,
data.table,
generics,
insight (>= 0.19.7),
insight (>= 0.20.3),
methods,
rlang,
utils,
Rcpp (>= 1.0.0)
Enhances:
knitr
Expand Down Expand Up @@ -165,7 +164,7 @@ Suggests:
tidyr,
tidyverse,
tinysnapshot,
tinytable (>= 0.2.0),
tinytable (>= 0.4.0),
tinytest,
titanic,
truncreg,
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# News

## Development
## 0.22.0

Breaking changes:

Expand Down
4 changes: 2 additions & 2 deletions R/methods_glmtoolbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @export
get_coef.glmgee <- function(model, ...) {
b <- model$coefficients
b <- setNames(as.vector(b), row.names(b))
b <- stats::setNames(as.vector(b), row.names(b))
return(b)
}

Expand All @@ -21,7 +21,7 @@ set_coef.glmgee <- function(model, coefs, ...) {
#' @rdname get_predict
#' @export
get_predict.glmgee <- function(model, newdata, ...) {
Yhat <- predict(model, newdata = newdata, type = "response")
Yhat <- stats::predict(model, newdata = newdata, type = "response")
out <- data.frame(
rowid = seq_len(nrow(Yhat)),
estimate = as.vector(Yhat))
Expand Down

0 comments on commit 9dd18c0

Please sign in to comment.