Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 23, 2024
1 parent 9bb0556 commit b243ba7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ S3method(get_df,negbinmfx)
S3method(get_df,nestedLogit)
S3method(get_df,phyloglm)
S3method(get_df,phylolm)
S3method(get_df,plm)
S3method(get_df,poissonirr)
S3method(get_df,poissonmfx)
S3method(get_df,probitmfx)
Expand Down
12 changes: 12 additions & 0 deletions R/get_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,18 @@ get_df.multinom <- function(x, type = "residual", ...) {
}


#' @export
get_df.plm <- function(x, type = "residual", ...) {
if (identical(type, "model")) {
.model_df(x)
} else if (identical(type, "normal")) {
Inf
} else {
x$df.residual
}
}



# Mixed models - special treatment --------------

Expand Down

0 comments on commit b243ba7

Please sign in to comment.