I used the afex::lmer_alt and met with a problem:
# in R 4.5.0
mod <- afex::lmer_alt(value ~ sleep * acupun + (1|subject), data=roi_df, method="PB")
## message output
REML argument to lmer() set to FALSE for method = 'PB' or 'LRT'
Error in apply(x, 3L, qr.default, ...) : 'MARGIN' does not match dim(X)
To solve this problem:
qr.matrix <- function(x, ...) qr.default(x, ...) # Duo to the higher version change than R 4.0
mod <- afex::lmer_alt(value ~ sleep * acupun + (1|subject), data=roi_df, method="PB")
## successed.
8278

被折叠的 条评论
为什么被折叠?



