From 6e9ea145c7fd0cd6201fb76e1aee2fea4ee6a7b7 Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Sat, 31 Aug 2024 07:41:29 -0400 Subject: [PATCH] namespace --- R/methods_glmtoolbox.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/methods_glmtoolbox.R b/R/methods_glmtoolbox.R index 9db3d4bdf..681d7a29d 100644 --- a/R/methods_glmtoolbox.R +++ b/R/methods_glmtoolbox.R @@ -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) } @@ -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))