Skip to content

Commit 014f6eb

Browse files
author
aliaksah
committed
pharsing improved in lmm
1 parent cde3147 commit 014f6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R_script/reproducible_script.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ mixed.model.loglik.lme4 <- function (y, x, model, complex, mlpost_params)
278278
mm <- lmer(as.formula(paste0("y ~ 1 + (1 | dr)")), data = data, REML = FALSE)
279279
}
280280

281-
mloglik <- as.numeric(logLik(mm)) - 0.5*log(length(y)) * (dim(data)[2] - 2) #Laplace approximation for beta prior
281+
mloglik <- as.numeric(logLik(mm)) - 0.5*log(length(y)) * (dim(data)[2] - 2) #Laplace approximation
282282

283283
# logarithm of model prior
284284
if (length(mlpost_params$r) == 0) mlpost_params$r <- 1/dim(x)[1] # default value or parameter r

0 commit comments

Comments
 (0)