* using log directory ‘/data/localhost/ripley/R/packages/tests-donttest/psychomix.Rcheck’ * using R Under development (unstable) (2026-12-01 r91013) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-12-01 17:55:02 UTC * checking for file ‘psychomix/DESCRIPTION’ ... OK * this is package ‘psychomix’ version ‘1.1-10’ * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘psychomix’ can be installed ... OK * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking sizes of PDF files under ‘inst/doc’ ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for differences from example reference output ... OK * checking examples with --run-donttest ... [29s/30s] ERROR Running examples in ‘psychomix-Ex.R’ failed The error most likely occurred in: > ### Name: raschmix > ### Title: Finite Mixtures of Rasch Models > ### Aliases: raschmix FLXMCrasch > ### Keywords: item response Rasch model mixture model > > ### ** Examples > > ########## > ## Data ## > ########## > > ## simulate response from Rost's scenario 2 (with 2 latent classes) > suppressWarnings(RNGversion("3.5.0")) > set.seed(1) > r2 <- simRaschmix(design = "rost2") > > ## plus informative and non-informative concomitants > d <- data.frame( + x1 = rbinom(nrow(r2), prob = c(0.4, 0.6)[attr(r2, "cluster")], size = 1), + x2 = rnorm(nrow(r2)) + ) > d$resp <- r2 > > ## fit model with 2 latent classes (here the number is known a priori) > m <- raschmix(r2, k = 2, scores = "saturated") 2 : * * * > summary(m) Call: raschmix(formula = r2, k = 2, scores = "saturated") prior size post>0 ratio Comp.1 0.5 830 1301 0.638 Comp.2 0.5 819 1284 0.638 Item Parameters: Comp.1 Comp.2 Item01 2.6259651 -2.5473708 Item02 2.1238482 -2.1065270 Item03 1.3804502 -1.6724719 Item04 0.8532003 -1.0300670 Item05 0.3131440 -0.2238842 Item06 -0.2936246 0.2739371 Item07 -0.8695492 0.9565315 Item08 -1.4456305 1.5520418 Item09 -2.0528893 2.0682463 Item10 -2.6349141 2.7295642 'log Lik.' -8829.039 (df=35) AIC: 17728.08 BIC: 17917.35 > > ## see below for examples which do not use this a priori information > ## (these take a little longer to compute) > > > ## No test: > #################################################### > ## Rasch mixture model with saturated score model ## > ## (Rost, 1990) ## > #################################################### > > ## fit models for k = 1, 2, 3 > m1 <- raschmix(r2, k = 1:3, score = "saturated") 1 : * * * 2 : * * * 3 : * * * > ## equivalently: m1 <- raschmix(resp ~ 1, data = d, k = 1:3, score = "saturated") > > ## inspect results > m1 Call: raschmix(formula = r2, k = 1:3, scores = "saturated") iter converged k k0 logLik AIC BIC ICL 1 2 TRUE 1 1 -10484.227 21002.45 21094.39 21094.39 2 9 TRUE 2 2 -8829.038 17728.08 17917.35 17987.28 3 108 TRUE 3 3 -8813.375 17732.75 18019.37 18444.64 > plot(m1) > > ## select best BIC model > BIC(m1) 1 2 3 21094.39 17917.35 18019.37 > m1b <- getModel(m1, which = "BIC") > summary(m1b) Call: raschmix(formula = r2, k = 2, scores = "saturated") prior size post>0 ratio Comp.1 0.5 830 1301 0.638 Comp.2 0.5 819 1285 0.637 Item Parameters: Comp.1 Comp.2 Item01 2.6269090 -2.5460513 Item02 2.1245832 -2.1055040 Item03 1.3810558 -1.6718301 Item04 0.8535915 -1.0296992 Item05 0.3133622 -0.2238795 Item06 -0.2934472 0.2735495 Item07 -0.8697053 0.9559795 Item08 -1.4461818 1.5514018 Item09 -2.0538382 2.0674802 Item10 -2.6363292 2.7285530 'log Lik.' -8829.038 (df=35) AIC: 17728.08 BIC: 17917.35 > > ## compare estimated with true item parameters > parameters(m1b, "item") ## 9 items, item_1 = 0 Comp.1 Comp.2 item.Item01 NA NA item.Item02 -0.5023258 0.4405473 item.Item03 -1.2458533 0.8742212 item.Item04 -1.7733176 1.5163521 item.Item05 -2.3135468 2.3221718 item.Item06 -2.9203562 2.8196008 item.Item07 -3.4966144 3.5020308 item.Item08 -4.0730909 4.0974531 item.Item09 -4.6807473 4.6135315 item.Item10 -5.2632382 5.2746043 > worth(m1b) ## 10 items, sum = 0 Comp.1 Comp.2 Item01 2.6269090 -2.5460513 Item02 2.1245832 -2.1055040 Item03 1.3810558 -1.6718301 Item04 0.8535915 -1.0296992 Item05 0.3133622 -0.2238795 Item06 -0.2934472 0.2735495 Item07 -0.8697053 0.9559795 Item08 -1.4461818 1.5514018 Item09 -2.0538382 2.0674802 Item10 -2.6363292 2.7285530 > attr(r2, "difficulty") [,1] [,2] [1,] 2.7 -2.7 [2,] 2.1 -2.1 [3,] 1.5 -1.5 [4,] 0.9 -0.9 [5,] 0.3 -0.3 [6,] -0.3 0.3 [7,] -0.9 0.9 [8,] -1.5 1.5 [9,] -2.1 2.1 [10,] -2.7 2.7 > > ## graphical comparison > plot(m1b, pos = "top") > for(i in 1:2) lines(attr(r2, "difficulty")[,i], lty = 2, type = "b") > > ## extract estimated raw score probabilities > ## (approximately equal across components and roughly uniform) > scoreProbs(m1b) Comp.1 Comp.2 [1,] 0.00000000 0.00000000 [2,] 0.09999186 0.11104185 [3,] 0.12597215 0.11175190 [4,] 0.10513779 0.12044893 [5,] 0.08994268 0.10411011 [6,] 0.10904886 0.09107777 [7,] 0.12248264 0.10190188 [8,] 0.09915921 0.11672399 [9,] 0.11892322 0.11515916 [10,] 0.12934159 0.12778441 [11,] 0.00000000 0.00000000 > > ## note: parameters() and worth() take "component" argument > parameters(m1b, "item", component = 2) Comp.2 item.Item01 NA item.Item02 0.4405473 item.Item03 0.8742212 item.Item04 1.5163521 item.Item05 2.3221718 item.Item06 2.8196008 item.Item07 3.5020308 item.Item08 4.0974531 item.Item09 4.6135315 item.Item10 5.2746043 > parameters(m1b, "score", component = 1) Comp.1 score.1 NA score.2 0.230972079 score.3 0.050183002 score.4 -0.105916161 score.5 0.086707240 score.6 0.202880537 score.7 -0.008362008 score.8 0.173389284 score.9 0.257368086 > worth(m1b, component = 2:1) Comp.2 Comp.1 Item01 -2.5460513 2.6269090 Item02 -2.1055040 2.1245832 Item03 -1.6718301 1.3810558 Item04 -1.0296992 0.8535915 Item05 -0.2238795 0.3133622 Item06 0.2735495 -0.2934472 Item07 0.9559795 -0.8697053 Item08 1.5514018 -1.4461818 Item09 2.0674802 -2.0538382 Item10 2.7285530 -2.6363292 > > ## inspect posterior probabilities > histogram(m1b) Error in histogram(m1b) : could not find function "histogram" Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘test.R’ Comparing ‘test.Rout’ to ‘test.Rout.save’ ... OK OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking running R code from vignettes ... ‘raschmix.Rnw’... [44s/47s] OK ‘scores.Rnw’... [11s/12s] OK [55s/59s] OK * checking re-building of vignette outputs ... [65s/69s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/localhost/ripley/R/packages/tests-donttest/psychomix.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 5:43.59, 198.55 + 124.18