diff --git a/R/logLik.R b/R/logLik.R index 5d21704c7..5c42f41a5 100644 --- a/R/logLik.R +++ b/R/logLik.R @@ -55,7 +55,7 @@ logLik.plm <- function(object, ...) { attr(val, "nall") <- N0 attr(val, "nobs") <- N - attr(val, "df") <- insight::n_parameters(object) + 1 + attr(val, "df") <- insight::n_parameters(object) + 1L class(val) <- "logLik" val