Skip to content

Commit

Permalink
namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Aug 31, 2024
1 parent 11fa01a commit 6e9ea14
Showing 1 changed file with 2 additions and 2 deletions.
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 6e9ea14

Please sign in to comment.