From 6325013c127ad03d6ae50a67bc7d89c4535e6bb6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 27 Sep 2023 14:06:47 +0200 Subject: [PATCH] Update R/logLik.R Co-authored-by: Indrajeet Patil --- R/logLik.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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