- using R Under development (unstable) (2026-06-06 r90114)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.1.0-1) 16.1.0
GNU Fortran (Debian 16.1.0-1) 16.1.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-06-07 11:11:59 UTC
- checking for file ‘MRCV/DESCRIPTION’ ... OK
- this is package ‘MRCV’ version ‘0.4-0’
- checking CRAN incoming feasibility ... [1s/2s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘geepack’
- 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 ‘MRCV’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking whether startup messages can be suppressed ... [0s/1s] 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 ... [12s/15s] OK
- checking Rd files ... [0s/1s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] ERROR
Running examples in ‘MRCV-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: MI.test
> ### Title: Test for Marginal Independence
> ### Aliases: MI.test MI.stat
>
> ### ** Examples
>
> # Test for MMI using the second-order Rao-Scott adjustment
> test.mmi.rs2 <- MI.test(data = farmer1, I = 1, J = 5, type = "rs2")
> test.mmi.rs2
Test for Multiple Marginal Independence (MMI)
Unadjusted Pearson Chi-Square Tests for Independence:
X^2_S = 30.84
X^2_S.ij =
Y1 Y2 Y3 Y4 Y5
5.96 7.89 4.62 1.42 10.95
Second-Order Rao-Scott Adjusted Results:
X^2_S.adj = 28.68
df.adj = 18.6
p.adj = 0.0632
>
> # Test for MMI using all three approaches
> # A small B is used for demonstration purposes; normally, a larger B should be used
> test.mmi.all <- MI.test(data = farmer1, I = 1, J = 5, type = "all", B = 99,
+ plot.hist = TRUE)
Bootstrap Progress:
|
| | 0%
|
|= | 1%
|
|= | 2%
|
|== | 3%
|
|=== | 4%
|
|==== | 5%
|
|==== | 6%
|
|===== | 7%
|
|====== | 8%
|
|====== | 9%
|
|======= | 10%
|
|======== | 11%
|
|======== | 12%
|
|========= | 13%
|
|========== | 14%
|
|=========== | 15%
|
|=========== | 16%
|
|============ | 17%
|
|============= | 18%
|
|============= | 19%
|
|============== | 20%
|
|=============== | 21%
|
|================ | 22%
|
|================ | 23%
|
|================= | 24%
|
|================== | 25%
|
|================== | 26%
|
|=================== | 27%
|
|==================== | 28%
|
|===================== | 29%
|
|===================== | 30%
|
|====================== | 31%
|
|======================= | 32%
|
|======================= | 33%
|
|======================== | 34%
|
|========================= | 35%
|
|========================= | 36%
|
|========================== | 37%
|
|=========================== | 38%
|
|============================ | 39%
|
|============================ | 40%
|
|============================= | 41%
|
|============================== | 42%
|
|============================== | 43%
|
|=============================== | 44%
|
|================================ | 45%
|
|================================= | 46%
|
|================================= | 47%
|
|================================== | 48%
|
|=================================== | 49%
|
|=================================== | 51%
|
|==================================== | 52%
|
|===================================== | 53%
|
|===================================== | 54%
|
|====================================== | 55%
|
|======================================= | 56%
|
|======================================== | 57%
|
|======================================== | 58%
|
|========================================= | 59%
|
|========================================== | 60%
|
|========================================== | 61%
|
|=========================================== | 62%
|
|============================================ | 63%
|
|============================================= | 64%
|
|============================================= | 65%
|
|============================================== | 66%
|
|=============================================== | 67%
|
|=============================================== | 68%
|
|================================================ | 69%
|
|================================================= | 70%
|
|================================================= | 71%
|
|================================================== | 72%
|
|=================================================== | 73%
|
|==================================================== | 74%
|
|==================================================== | 75%
|
|===================================================== | 76%
|
|====================================================== | 77%
|
|====================================================== | 78%
|
|======================================================= | 79%
|
|======================================================== | 80%
|
|========================================================= | 81%
|
|========================================================= | 82%
|
|========================================================== | 83%
|
|=========================================================== | 84%
|
|=========================================================== | 85%
|
|============================================================ | 86%
|
|============================================================= | 87%
|
|============================================================== | 88%
|
|============================================================== | 89%
|
|=============================================================== | 90%
|
|================================================================ | 91%
|
|================================================================ | 92%
|
|================================================================= | 93%
|
|================================================================== | 94%
|
|================================================================== | 95%
|
|=================================================================== | 96%
|
|==================================================================== | 97%
|
|===================================================================== | 98%
|
|===================================================================== | 99%
|
|======================================================================| 100%
> test.mmi.all
Test for Multiple Marginal Independence (MMI)
Unadjusted Pearson Chi-Square Tests for Independence:
X^2_S = 30.84
X^2_S.ij =
Y1 Y2 Y3 Y4 Y5
5.96 7.89 4.62 1.42 10.95
Bootstrap Results:
Final results based on 99 resamples
p.boot = 0.0606
p.combo.prod = 0.0606
p.combo.min = 0.1717
Second-Order Rao-Scott Adjusted Results:
X^2_S.adj = 28.68
df.adj = 18.6
p.adj = 0.0632
Bonferroni Adjusted Results:
p.adj = 0.1357
p.ij.adj =
Y1 Y2 Y3 Y4 Y5
1.0000 0.4778 1.0000 1.0000 0.1357
>
> # Use MI.test() with summary data
> # Convert raw data file to summary file for this example
> farmer1.irdframe <- item.response.table(data = farmer1, I = 1, J = 5, create.dataframe =
+ TRUE)
> # Test for MMI using the Bonferroni adjustment
> test.mmi.bon <- MI.test(data = farmer1.irdframe, I = 1, J = 5, type = "bon",
+ summary.data = TRUE)
> test.mmi.bon
Test for Multiple Marginal Independence (MMI)
Unadjusted Pearson Chi-Square Tests for Independence:
X^2_S = 30.84
X^2_S.ij =
Y1 Y2 Y3 Y4 Y5
5.96 7.89 4.62 1.42 10.95
Bonferroni Adjusted Results:
p.adj = 0.1357
p.ij.adj =
Y1 Y2 Y3 Y4 Y5
1.0000 0.4778 1.0000 1.0000 0.1357
>
> # Test for SPMI using the second-order Rao-Scott adjustment
> test.spmi.rs2 <- MI.test(data = farmer2, I = 3, J = 4, type = "rs2")
> test.spmi.rs2
Test for Simultaneous Pairwise Marginal Independence (SPMI)
Unadjusted Pearson Chi-Square Tests for Independence:
X^2_S = 64.03
X^2_S.ij =
y1 y2 y3 y4
w1 4.93 2.93 14.29 0.01
w2 6.56 2.11 11.68 0.13
w3 13.98 0.00 7.08 0.32
Second-Order Rao-Scott Adjusted Results:
X^2_S.adj = 36.17
df.adj = 6.78
p.adj < 0.0001
>
> # Test for MMI using the marginal logit model approach
> library(geepack)
Error in library(geepack) : there is no package called ‘geepack’
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s/2s] OK
- checking PDF version of manual ... [3s/4s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR