Skip to content

Commit

Permalink
support oohbchoice
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jan 2, 2025
1 parent 98f2f6a commit c1f9844
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: performance
Title: Assessment of Regression Models Performance
Version: 0.12.4.16
Version: 0.12.4.17
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ S3method(r2,negbinirr)
S3method(r2,negbinmfx)
S3method(r2,nestedLogit)
S3method(r2,ols)
S3method(r2,oohbchoice)
S3method(r2,phylolm)
S3method(r2,plm)
S3method(r2,poissonirr)
Expand Down
7 changes: 7 additions & 0 deletions R/r2.R
Original file line number Diff line number Diff line change
Expand Up @@ -706,12 +706,19 @@ r2.fixest <- function(model, ...) {
structure(class = "r2_generic", out)
}


#' @export
r2.fixest_multi <- function(model, ...) {
lapply(model, r2.fixest)
}


#' @export
r2.oohbchoice <- function(model, ...) {
NULL
}


#' @export
r2.felm <- function(model, ...) {
model_summary <- summary(model)
Expand Down

0 comments on commit c1f9844

Please sign in to comment.