[R-meta] A possible bug in clubSandwich::Wald_test()

Stefanou Revesz @te|@noureve@z @end|ng |rom gm@||@com
Sun Mar 13 19:01:31 CET 2022


Dear Dr. Pustejovsky (and other Meta Experts),

I've run into a potential bug in clubSandwich::Wald_test(). The error says:

Error: the leading minor of order 6 is not positive definite

Would you please confirm whether the error in the following
reproducible example is a bug or not? Any possible fix?

Best,
Stefanou

dd <- read.csv("https://raw.githubusercontent.com/fpqq/w/main/1.csv")
dd$obs <- 1:nrow(dd)

res <- rma.mv(gi ~ 0 + teaching_level*time, vi, random = ~1|study/obs,
              data = dd)

clubSandwich::Wald_test(res, constrain_zero(res$btt), "CR2")



More information about the R-sig-meta-analysis mailing list