From searching online it appears to be because of changes in that update that has affected multiple packagesError in if (class(testpd) == "try-error") { :
the condition has length > 1
https://stackoverflow.com/questions/728 ... o-logical1
https://stackoverflow.com/questions/731 ... s-length-1
It's reproducible with
Code: Select all
data(tutorial, package = "R2MLwiN")
# 5.5 Changing the random number seed and the parameter starting values .66
## Set starting values for random and fixed parameter estimates
FP.b <- c(-2, 5)
names(FP.b) <- c("FP_Intercept", "FP_standlrt")
RP.b <- c(2, 4)
names(RP.b) <- c("RP2_var_Intercept", "RP1_var_Intercept")
startval <- list(FP.b = FP.b, RP.b = RP.b)
(mymodel7 <- runMLwiN(normexam ~ 1 + standlrt + (1 | school) + (1 | student), estoptions = list(EstM = 1, mcmcMeth = list(burnin = 0,
iterations = 500), startval = startval), data = tutorial))
platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 2.1
year 2022
month 06
day 23
svn rev 82513
language R
version.string R version 4.2.1 (2022-06-23 ucrt)
nickname Funny-Looking Kid
Thanks