Skip to content

Commit

Permalink
fix issue #83
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiang committed Nov 16, 2022
1 parent 08c288b commit ed42767
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions R/pglmm-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -965,16 +965,14 @@ summary.communityPGLMM <- function(object, digits = max(3, getOption("digits") -
"WAIC" = unname(x$WAIC))
print(logLik, digits = digits)
} else {
if (x$family == "gaussian") {
logLik = x$logLik
AIC = x$AIC
BIC = x$BIC

names(logLik) = "logLik"
names(AIC) = "AIC"
names(BIC) = "BIC"
print(c(logLik, AIC, BIC), digits = digits)
}
logLik = x$logLik
AIC = x$AIC
BIC = x$BIC

names(logLik) = "logLik"
names(AIC) = "AIC"
names(BIC) = "BIC"
print(c(logLik, AIC, BIC), digits = digits)
}

if(grepl("zeroinflated", x$family)) {
Expand Down

0 comments on commit ed42767

Please sign in to comment.