Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 4, 2023
1 parent 72ed16b commit 22f1ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/r2.R
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ r2.svyglm <- function(model, ...) {

#' @export
r2.vglm <- function(model, ...) {
out <- list("R2_McKelvey" = r2_mckelvey(model))
out <- list(R2_McKelvey = r2_mckelvey(model))
names(out$R2_McKelvey) <- "McKelvey's R2"
class(out) <- c("r2_pseudo", class(out))
out
Expand All @@ -817,7 +817,7 @@ r2.vgam <- r2.vglm

#' @export
r2.DirichletRegModel <- function(model, ...) {
out <- list("R2_Nagelkerke" = r2_nagelkerke(model))
out <- list(R2_Nagelkerke = r2_nagelkerke(model))
names(out$R2_Nagelkerke) <- "Nagelkerke's R2"
class(out) <- c("r2_pseudo", class(out))
out
Expand Down

0 comments on commit 22f1ea9

Please sign in to comment.