==22260== Memcheck, a memory error detector ==22260== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==22260== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==22260== Command: /data/blackswan/ripley/R/R-devel-vg/bin/exec/R --vanilla ==22260== R Under development (unstable) (2018-01-28 r74175) -- "Unsuffered Consequences" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "D3M" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('D3M') > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("D3M") > ### * D3M > > flush(stderr()); flush(stdout()) > > ### Name: d3m > ### Title: Two Sample Test with Distribution-Valued Data > ### Aliases: d3m > > ### ** Examples > > nrep <-12 > cases <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)); cases <- do.call("rbind",cases) > control <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)); control <- do.call("rbind",control) > d3m(cases,control,paranum = 101, q = 2, bsn = 1000,seed = 100) ==22260== Invalid read of size 8 ==22260== at 0x1630BFF8: permCpp(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int) (packages/tests-vg/D3M/src/funcs.cpp:299) ==22260== by 0x16303A39: D3M_permCpp (packages/tests-vg/D3M/src/RcppExports.cpp:72) ==22260== by 0x497EF9: R_doDotCall (svn/R-devel/src/main/dotcode.c:596) ==22260== by 0x498423: do_dotcall (svn/R-devel/src/main/dotcode.c:1252) ==22260== by 0x4CBAA1: bcEval (svn/R-devel/src/main/eval.c:6766) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4D108A: bcEval (svn/R-devel/src/main/eval.c:6734) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4D108A: bcEval (svn/R-devel/src/main/eval.c:6734) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== Address 0x12474940 is 0 bytes after a block of size 528 alloc'd ==22260== at 0x4C2DB6B: malloc (/builddir/build/BUILD/valgrind-3.13.0/coregrind/m_replacemalloc/vg_replace_malloc.c:299) ==22260== by 0x511591: Rf_allocVector3 (svn/R-devel/src/main/memory.c:2709) ==22260== by 0x1630BCE3: Vector (R-devel/site-library/Rcpp/include/Rcpp/vector/Vector.h:129) ==22260== by 0x1630BCE3: permCpp(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int) (packages/tests-vg/D3M/src/funcs.cpp:248) ==22260== by 0x16303A39: D3M_permCpp (packages/tests-vg/D3M/src/RcppExports.cpp:72) ==22260== by 0x497EF9: R_doDotCall (svn/R-devel/src/main/dotcode.c:596) ==22260== by 0x498423: do_dotcall (svn/R-devel/src/main/dotcode.c:1252) ==22260== by 0x4CBAA1: bcEval (svn/R-devel/src/main/eval.c:6766) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4D108A: bcEval (svn/R-devel/src/main/eval.c:6734) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== ==22260== Invalid read of size 8 ==22260== at 0x1630C040: permCpp(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int) (packages/tests-vg/D3M/src/funcs.cpp:313) ==22260== by 0x16303A39: D3M_permCpp (packages/tests-vg/D3M/src/RcppExports.cpp:72) ==22260== by 0x497EF9: R_doDotCall (svn/R-devel/src/main/dotcode.c:596) ==22260== by 0x498423: do_dotcall (svn/R-devel/src/main/dotcode.c:1252) ==22260== by 0x4CBAA1: bcEval (svn/R-devel/src/main/eval.c:6766) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4D108A: bcEval (svn/R-devel/src/main/eval.c:6734) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4D108A: bcEval (svn/R-devel/src/main/eval.c:6734) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== Address 0x12474940 is 0 bytes after a block of size 528 alloc'd ==22260== at 0x4C2DB6B: malloc (/builddir/build/BUILD/valgrind-3.13.0/coregrind/m_replacemalloc/vg_replace_malloc.c:299) ==22260== by 0x511591: Rf_allocVector3 (svn/R-devel/src/main/memory.c:2709) ==22260== by 0x1630BCE3: Vector (R-devel/site-library/Rcpp/include/Rcpp/vector/Vector.h:129) ==22260== by 0x1630BCE3: permCpp(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int) (packages/tests-vg/D3M/src/funcs.cpp:248) ==22260== by 0x16303A39: D3M_permCpp (packages/tests-vg/D3M/src/RcppExports.cpp:72) ==22260== by 0x497EF9: R_doDotCall (svn/R-devel/src/main/dotcode.c:596) ==22260== by 0x498423: do_dotcall (svn/R-devel/src/main/dotcode.c:1252) ==22260== by 0x4CBAA1: bcEval (svn/R-devel/src/main/eval.c:6766) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4D108A: bcEval (svn/R-devel/src/main/eval.c:6734) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== $pval [1] 0.550 0.390 0.720 0.006 0.618 0.883 0.401 0.663 0.738 0.074 0.833 NaN $test.stat [1] 5.629211 11.172100 5.654134 7.072993 11.577022 7.094293 20.825060 [8] 7.018307 4.427331 26.760446 3.645962 5.101475 $cases [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.356197378 0.129776050 0.011577358 0.105471514 0.43534523 0.08350307 [2,] 0.273728251 0.180232621 0.030435189 0.206431273 0.23077340 0.06030085 [3,] 0.085017146 0.389230972 0.069102348 0.111420017 0.28993132 0.16642183 [4,] 0.097384543 0.009609142 0.359786902 0.296168204 0.01619114 0.36561645 [5,] 0.567574482 0.405987820 0.003742507 0.162846735 0.64498182 0.08830882 [6,] 0.204921891 0.015171360 0.412337622 0.285542173 0.20975262 0.39812356 [7,] 0.007346303 0.253810922 0.116014033 0.073554805 0.18032933 0.18958661 [8,] 0.114882113 0.282871470 0.601040536 0.253780542 0.23236949 0.09593479 [9,] 0.010210448 0.013766475 0.149075113 0.073928875 0.52584211 0.10646868 [10,] 0.260372164 0.320087434 0.056304875 0.118844508 0.24127524 0.04200924 [11,] 0.206270574 0.008030682 0.054241372 0.029815185 0.48022603 0.13330908 [12,] 0.079041313 0.035231157 0.230146202 0.009059683 0.01610095 0.38940319 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.05642019 0.2460040490 0.013778695 0.09657768 0.354190859 0.02909490 [2,] 0.07514109 0.3806907046 0.388237799 0.10022314 0.053718089 0.19308992 [3,] 0.15083085 0.3421297719 0.198842496 0.02639726 0.070932189 0.10494660 [4,] 0.21791506 0.2732484058 0.250410846 0.23822104 0.082654395 0.20981280 [5,] 0.17082094 0.5489378330 0.036342153 0.35420089 0.006313766 0.09167261 [6,] 0.04851856 0.5365139418 0.015905412 0.52188888 0.093474146 0.26947110 [7,] 0.07466179 0.0306137057 0.167854459 0.05931000 0.122725247 0.46058270 [8,] 0.44887576 0.0008095171 0.134857860 0.02881732 0.056176347 0.65830907 [9,] 0.03366087 0.1458391778 0.293605757 0.36761060 0.174781634 0.03216665 [10,] 0.21354426 0.0507426258 0.006052732 0.06222456 0.097990335 0.21395382 [11,] 0.02755105 0.1795749879 0.103149309 0.02003691 0.068574293 0.03089618 [12,] 0.18159401 0.0736439680 0.011166050 0.41798846 0.361900597 0.37764341 [,13] [,14] [,15] [,16] [,17] [,18] [1,] 0.17686585 0.170285998 0.04005730 0.049260746 0.07093713 0.041798012 [2,] 0.04456948 0.095409235 0.10370954 0.016167103 0.00485848 0.265058742 [3,] 0.03251610 0.245643189 0.09942915 0.115367404 0.32473362 0.024978873 [4,] 0.31160263 0.019310580 0.21989116 0.210404905 0.19008106 0.183619153 [5,] 0.04417161 0.002767994 0.23124966 0.201203290 0.12550832 0.002117823 [6,] 0.09383067 0.011791716 0.25374215 0.001256438 0.06324079 0.076931062 [7,] 0.02714267 0.325560798 0.23143394 0.206850741 0.03506382 0.138596013 [8,] 0.04173916 0.095405819 0.27804118 0.020027061 0.38570628 0.372497811 [9,] 0.30387981 0.195257219 0.64848283 0.082638831 0.02066901 0.014201640 [10,] 0.01200952 0.070680372 0.20411123 0.214618272 0.02042761 0.285464439 [11,] 0.10901881 0.192545717 0.48071767 0.011635401 0.15692723 0.391334990 [12,] 0.08181085 0.172281077 0.07103823 0.215413395 0.04375663 0.172444407 [,19] [,20] [,21] [,22] [,23] [,24] [1,] 0.05253663 0.15078511 0.068126468 0.179482645 0.20415102 0.301855224 [2,] 0.53475873 0.07364435 0.198810893 0.001643003 0.17554668 0.061000683 [3,] 0.02727067 0.05998815 0.011785627 0.074930588 0.33604830 0.300211235 [4,] 0.17517604 0.37785444 0.251712479 0.153754032 0.07809690 0.109026192 [5,] 0.14450574 0.08741323 0.184479792 0.254692051 0.17450639 0.052064800 [6,] 0.16965769 0.08068355 0.206392506 0.092274092 0.27566295 0.013554621 [7,] 0.09414118 0.18268513 0.229149659 0.060437174 0.02798790 0.073301678 [8,] 0.03996460 0.09050755 0.036017653 0.098508144 0.11918964 0.007767396 [9,] 0.04979506 0.08752631 0.260709217 0.132175390 0.06203065 0.252576620 [10,] 0.20769229 0.06894157 0.062118596 0.073845536 0.67896640 0.271928680 [11,] 0.04577627 0.03186483 0.005938354 0.347222875 0.28089938 0.267739154 [12,] 0.36442900 0.17075311 0.046737582 0.125927377 0.68019264 0.283508040 [,25] [,26] [,27] [,28] [,29] [,30] [1,] 0.092651601 0.01873030 0.19072078 0.09688672 0.178936982 0.280494579 [2,] 0.160552293 0.40286678 0.12884657 0.01514167 0.135373920 0.003016929 [3,] 0.353855157 0.15753950 0.13448150 0.36714059 0.007963874 0.042429212 [4,] 0.244684045 0.31957724 0.36616418 0.17966329 0.026470608 0.296814188 [5,] 0.003854922 0.03463893 0.02497698 0.03737837 0.123341553 0.079354889 [6,] 0.247010430 0.06577083 0.17681369 0.16619471 0.357682212 0.586179543 [7,] 0.098746136 0.28389530 0.03956606 0.27209476 0.239751661 0.046379681 [8,] 0.138935221 0.05397575 0.03928604 0.17817851 0.246132082 0.270290869 [9,] 0.265131339 0.01852047 0.25477833 0.05693088 0.039868511 0.165694040 [10,] 0.113600035 0.43646478 0.18249116 0.16851639 0.140008802 0.201583209 [11,] 0.243105824 0.27174984 0.06471166 0.02910327 0.414859096 0.312357389 [12,] 0.120438226 0.03884397 0.34776543 0.40684125 0.717528547 0.154551026 $control [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.080774165 0.0775881079 0.003073268 0.070761306 0.165586914 0.113365326 [2,] 0.102728770 0.4582001205 0.150226026 0.598362745 0.164178814 0.036880454 [3,] 0.109529060 0.0217314249 0.070024715 0.246494185 0.281624672 0.101615078 [4,] 0.050540665 0.2982119493 0.047082026 0.037191991 0.072976029 0.004363202 [5,] 0.270797170 0.0007478737 0.283369854 0.243975818 0.229247418 0.229047233 [6,] 0.553294726 0.0595460300 0.105247326 0.037872799 0.501420914 0.251164146 [7,] 0.187586738 0.1697966068 0.571025093 0.282799924 0.018648222 0.008207451 [8,] 0.021688437 0.0608979144 0.034257927 0.007888354 0.446188309 0.063218547 [9,] 0.186854478 0.1325432209 0.049100223 0.221635997 0.169102284 0.617358587 [10,] 0.007396855 0.3325077764 0.125881826 0.002558991 0.109701878 0.507263122 [11,] 0.129343607 0.1310895964 0.042021484 0.106905132 0.264889671 0.066555420 [12,] 0.007849180 0.2158535580 0.061048942 0.158808371 0.005305388 0.056521661 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.387594717 0.06725771 0.014697729 0.031356336 0.19242074 0.08954346 [2,] 0.011609532 0.22970346 0.027319667 0.566797198 0.15640463 0.27680099 [3,] 0.080271029 0.16258327 0.020253137 0.181775476 0.38532891 0.07740381 [4,] 0.132692521 0.01184049 0.009699115 0.083393733 0.04475271 0.20132556 [5,] 0.231388025 0.06101423 0.560625489 0.228810461 0.25034807 0.01858554 [6,] 0.061154959 0.15145794 0.002887182 0.586698659 0.02622228 0.31924900 [7,] 0.012251998 0.02111619 0.226301429 0.252794210 0.24853297 0.01008493 [8,] 0.035966370 0.04959607 0.370841720 0.169182020 0.19607542 0.13121307 [9,] 0.026837054 0.55429597 0.036644549 0.169312278 0.34594533 0.20997692 [10,] 0.004570693 0.23306485 0.134568785 0.040781432 0.10961303 0.10185223 [11,] 0.180982815 0.12992194 0.030237502 0.008239673 0.49389126 0.01043398 [12,] 0.102541160 0.09218643 0.480825945 0.213058640 0.10328977 0.04985127 [,13] [,14] [,15] [,16] [,17] [,18] [1,] 0.100252066 0.12100207 0.02563341 0.172944870 0.26193082 0.31568117 [2,] 0.121345087 0.09883388 0.26467407 0.025817210 0.40041619 0.11154467 [3,] 0.096275278 0.08230833 0.22274109 0.273956611 0.01273555 0.04999772 [4,] 0.085857156 0.09852762 0.41023474 0.242398654 0.19875653 0.01747857 [5,] 0.313470411 0.39789663 0.16233473 0.386554685 0.05849470 0.08634294 [6,] 0.073275883 0.39868330 0.12491593 0.605533969 0.12391368 0.13728982 [7,] 0.139605308 0.03066268 0.08326230 0.008396432 0.18477656 0.15158539 [8,] 0.009389757 0.06578208 0.02171089 0.137771930 0.25644202 0.04109925 [9,] 0.284132595 0.05740043 0.10187275 0.057478886 0.06312108 0.22567174 [10,] 0.088277484 0.06399810 0.52896804 0.251805790 0.48963009 0.41225744 [11,] 0.455347525 0.11549023 0.12291736 0.237576413 0.01746449 0.36884112 [12,] 0.042057800 0.20836109 0.05136257 0.003044006 0.15412353 0.26516300 [,19] [,20] [,21] [,22] [,23] [,24] [1,] 0.263448436 0.001888709 0.001450753 0.20700379 0.53454579 0.08012583 [2,] 0.463276712 0.125425862 0.177516675 0.20115879 0.02629380 0.06181688 [3,] 0.309959326 0.313352105 0.171726731 0.34136324 0.34864096 0.03062124 [4,] 0.042825314 0.411087474 0.256871902 0.01404592 0.07847813 0.07682929 [5,] 0.256691834 0.058767803 0.368890460 0.17489220 0.04713138 0.25152361 [6,] 0.285012358 0.367766786 0.038998650 0.04097848 0.18407000 0.08687122 [7,] 0.045887300 0.081735898 0.261141487 0.30543406 0.04057899 0.54309655 [8,] 0.016698934 0.181037798 0.506071946 0.03114786 0.13800397 0.02916603 [9,] 0.004867433 0.051287635 0.083040073 0.20894402 0.03887121 0.11104010 [10,] 0.274933538 0.247755873 0.051346873 0.42430084 0.10068366 0.01730828 [11,] 0.169625365 0.024663058 0.318811505 0.12785458 0.11580819 0.06487365 [12,] 0.176101608 0.062339072 0.045683172 0.12071591 0.48501801 0.04991461 [,25] [,26] [,27] [,28] [,29] [,30] [1,] 0.55597264 0.002253411 0.463613994 0.143460858 1.388204e-05 0.108867909 [2,] 0.13725938 0.026831815 0.149839347 0.292802360 1.048007e-02 0.413804854 [3,] 0.22910570 0.205221331 0.355936980 0.043136707 5.120756e-01 0.047016808 [4,] 0.19922371 0.222327158 0.004615147 0.123032874 1.333033e-01 0.104996331 [5,] 0.23131294 0.153596058 0.006915154 0.117515102 1.661319e-01 0.080737841 [6,] 0.13690747 0.072447459 0.064455012 0.245740498 3.882674e-01 0.004962434 [7,] 0.09178874 0.292646065 0.041364668 0.215528758 2.559084e-02 0.082484952 [8,] 0.02784852 0.096354747 0.043803357 0.095406759 1.929009e-01 0.062375556 [9,] 0.14947396 0.129772700 0.132955419 0.001894142 1.704600e-01 0.325388970 [10,] 0.17946893 0.121284015 0.194775426 0.103363060 3.548864e-01 0.311368642 [11,] 0.52964141 0.064033486 0.120263604 0.146582072 2.965705e-01 0.135480165 [12,] 0.01911305 0.307263671 0.085198625 0.025645943 1.941005e-01 0.078892239 > > > > cleanEx() > nameEx("d3m.parallel") > ### * d3m.parallel > > flush(stderr()); flush(stdout()) > > ### Name: d3m.parallel > ### Title: Parallel Version of Two Sample Test with Distribution-Valued > ### Data > ### Aliases: d3m.parallel > > ### ** Examples > > library(D3M) > nrep <- 12 > cases <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)) > cases <- do.call("rbind",cases) > control <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)) > control <- do.call("rbind",control) > ## do not run. > #d3m.parallel(cases,control,rm.mean = FALSE, rm.var = FALSE, bsn = 1000) > > > > cleanEx() > nameEx("d3m.plot") > ### * d3m.plot > > flush(stderr()); flush(stdout()) > > ### Name: d3m.plot > ### Title: Comparative Plot of Two Distributions > ### Aliases: d3m.plot > > ### ** Examples > > library(D3M) > cases <- rbeta(50,1,5) > control <- rbeta(50,2,5) > d3m.plot(cases,control) ==22260== Conditional jump or move depends on uninitialised value(s) ==22260== at 0x4D18F5: FIND_ON_STACK (svn/R-devel/src/main/eval.c:6179) ==22260== by 0x4D18F5: bcEval (svn/R-devel/src/main/eval.c:6845) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4D108A: bcEval (svn/R-devel/src/main/eval.c:6734) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4D108A: bcEval (svn/R-devel/src/main/eval.c:6734) ==22260== by 0x4D9FCF: Rf_eval (svn/R-devel/src/main/eval.c:624) ==22260== by 0x4DB8BE: R_execClosure (svn/R-devel/src/main/eval.c:1764) ==22260== by 0x4DA15C: Rf_eval (svn/R-devel/src/main/eval.c:747) ==22260== by 0x505B7C: Rf_ReplIteration (svn/R-devel/src/main/main.c:258) ==22260== by 0x505F47: R_ReplConsole (svn/R-devel/src/main/main.c:308) ==22260== Uninitialised value was created by a stack allocation ==22260== at 0x4D4AB5: bcEval (svn/R-devel/src/main/eval.c:6402) ==22260== > > > > cleanEx() > nameEx("topD3M") > ### * topD3M > > flush(stderr()); flush(stdout()) > > ### Name: topD3M > ### Title: Subsetting Top Significant Distribution Pairs and Output > ### Graphics. > ### Aliases: topD3M > > ### ** Examples > > library(D3M) > nrep <- 12 > cases <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)); cases <- do.call("rbind",cases) > control <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)); control <- do.call("rbind",control) > obj <- d3m(cases,control,paranum = 101, q = 2, bsn = 1000) > topD3M(obj,ntop = 10,plot.it = TRUE) $top.cases [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.097384543 0.009609142 0.359786902 0.296168204 0.01619114 0.36561645 [2,] 0.260372164 0.320087434 0.056304875 0.118844508 0.24127524 0.04200924 [3,] 0.273728251 0.180232621 0.030435189 0.206431273 0.23077340 0.06030085 [4,] 0.007346303 0.253810922 0.116014033 0.073554805 0.18032933 0.18958661 [5,] 0.356197378 0.129776050 0.011577358 0.105471514 0.43534523 0.08350307 [6,] 0.567574482 0.405987820 0.003742507 0.162846735 0.64498182 0.08830882 [7,] 0.114882113 0.282871470 0.601040536 0.253780542 0.23236949 0.09593479 [8,] 0.085017146 0.389230972 0.069102348 0.111420017 0.28993132 0.16642183 [9,] 0.010210448 0.013766475 0.149075113 0.073928875 0.52584211 0.10646868 [10,] 0.079041313 0.035231157 0.230146202 0.009059683 0.01610095 0.38940319 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.21791506 0.2732484058 0.250410846 0.23822104 0.082654395 0.20981280 [2,] 0.21354426 0.0507426258 0.006052732 0.06222456 0.097990335 0.21395382 [3,] 0.07514109 0.3806907046 0.388237799 0.10022314 0.053718089 0.19308992 [4,] 0.07466179 0.0306137057 0.167854459 0.05931000 0.122725247 0.46058270 [5,] 0.05642019 0.2460040490 0.013778695 0.09657768 0.354190859 0.02909490 [6,] 0.17082094 0.5489378330 0.036342153 0.35420089 0.006313766 0.09167261 [7,] 0.44887576 0.0008095171 0.134857860 0.02881732 0.056176347 0.65830907 [8,] 0.15083085 0.3421297719 0.198842496 0.02639726 0.070932189 0.10494660 [9,] 0.03366087 0.1458391778 0.293605757 0.36761060 0.174781634 0.03216665 [10,] 0.18159401 0.0736439680 0.011166050 0.41798846 0.361900597 0.37764341 [,13] [,14] [,15] [,16] [,17] [,18] [1,] 0.31160263 0.019310580 0.21989116 0.21040490 0.19008106 0.183619153 [2,] 0.01200952 0.070680372 0.20411123 0.21461827 0.02042761 0.285464439 [3,] 0.04456948 0.095409235 0.10370954 0.01616710 0.00485848 0.265058742 [4,] 0.02714267 0.325560798 0.23143394 0.20685074 0.03506382 0.138596013 [5,] 0.17686585 0.170285998 0.04005730 0.04926075 0.07093713 0.041798012 [6,] 0.04417161 0.002767994 0.23124966 0.20120329 0.12550832 0.002117823 [7,] 0.04173916 0.095405819 0.27804118 0.02002706 0.38570628 0.372497811 [8,] 0.03251610 0.245643189 0.09942915 0.11536740 0.32473362 0.024978873 [9,] 0.30387981 0.195257219 0.64848283 0.08263883 0.02066901 0.014201640 [10,] 0.08181085 0.172281077 0.07103823 0.21541340 0.04375663 0.172444407 [,19] [,20] [,21] [,22] [,23] [,24] [1,] 0.17517604 0.37785444 0.25171248 0.153754032 0.07809690 0.109026192 [2,] 0.20769229 0.06894157 0.06211860 0.073845536 0.67896640 0.271928680 [3,] 0.53475873 0.07364435 0.19881089 0.001643003 0.17554668 0.061000683 [4,] 0.09414118 0.18268513 0.22914966 0.060437174 0.02798790 0.073301678 [5,] 0.05253663 0.15078511 0.06812647 0.179482645 0.20415102 0.301855224 [6,] 0.14450574 0.08741323 0.18447979 0.254692051 0.17450639 0.052064800 [7,] 0.03996460 0.09050755 0.03601765 0.098508144 0.11918964 0.007767396 [8,] 0.02727067 0.05998815 0.01178563 0.074930588 0.33604830 0.300211235 [9,] 0.04979506 0.08752631 0.26070922 0.132175390 0.06203065 0.252576620 [10,] 0.36442900 0.17075311 0.04673758 0.125927377 0.68019264 0.283508040 [,25] [,26] [,27] [,28] [,29] [,30] [1,] 0.244684045 0.31957724 0.36616418 0.17966329 0.026470608 0.296814188 [2,] 0.113600035 0.43646478 0.18249116 0.16851639 0.140008802 0.201583209 [3,] 0.160552293 0.40286678 0.12884657 0.01514167 0.135373920 0.003016929 [4,] 0.098746136 0.28389530 0.03956606 0.27209476 0.239751661 0.046379681 [5,] 0.092651601 0.01873030 0.19072078 0.09688672 0.178936982 0.280494579 [6,] 0.003854922 0.03463893 0.02497698 0.03737837 0.123341553 0.079354889 [7,] 0.138935221 0.05397575 0.03928604 0.17817851 0.246132082 0.270290869 [8,] 0.353855157 0.15753950 0.13448150 0.36714059 0.007963874 0.042429212 [9,] 0.265131339 0.01852047 0.25477833 0.05693088 0.039868511 0.165694040 [10,] 0.120438226 0.03884397 0.34776543 0.40684125 0.717528547 0.154551026 $top.contorl [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.050540665 0.2982119493 0.047082026 0.037191991 0.072976029 0.004363202 [2,] 0.007396855 0.3325077764 0.125881826 0.002558991 0.109701878 0.507263122 [3,] 0.102728770 0.4582001205 0.150226026 0.598362745 0.164178814 0.036880454 [4,] 0.187586738 0.1697966068 0.571025093 0.282799924 0.018648222 0.008207451 [5,] 0.080774165 0.0775881079 0.003073268 0.070761306 0.165586914 0.113365326 [6,] 0.270797170 0.0007478737 0.283369854 0.243975818 0.229247418 0.229047233 [7,] 0.021688437 0.0608979144 0.034257927 0.007888354 0.446188309 0.063218547 [8,] 0.109529060 0.0217314249 0.070024715 0.246494185 0.281624672 0.101615078 [9,] 0.186854478 0.1325432209 0.049100223 0.221635997 0.169102284 0.617358587 [10,] 0.007849180 0.2158535580 0.061048942 0.158808371 0.005305388 0.056521661 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.132692521 0.01184049 0.009699115 0.08339373 0.04475271 0.20132556 [2,] 0.004570693 0.23306485 0.134568785 0.04078143 0.10961303 0.10185223 [3,] 0.011609532 0.22970346 0.027319667 0.56679720 0.15640463 0.27680099 [4,] 0.012251998 0.02111619 0.226301429 0.25279421 0.24853297 0.01008493 [5,] 0.387594717 0.06725771 0.014697729 0.03135634 0.19242074 0.08954346 [6,] 0.231388025 0.06101423 0.560625489 0.22881046 0.25034807 0.01858554 [7,] 0.035966370 0.04959607 0.370841720 0.16918202 0.19607542 0.13121307 [8,] 0.080271029 0.16258327 0.020253137 0.18177548 0.38532891 0.07740381 [9,] 0.026837054 0.55429597 0.036644549 0.16931228 0.34594533 0.20997692 [10,] 0.102541160 0.09218643 0.480825945 0.21305864 0.10328977 0.04985127 [,13] [,14] [,15] [,16] [,17] [,18] [1,] 0.085857156 0.09852762 0.41023474 0.242398654 0.19875653 0.01747857 [2,] 0.088277484 0.06399810 0.52896804 0.251805790 0.48963009 0.41225744 [3,] 0.121345087 0.09883388 0.26467407 0.025817210 0.40041619 0.11154467 [4,] 0.139605308 0.03066268 0.08326230 0.008396432 0.18477656 0.15158539 [5,] 0.100252066 0.12100207 0.02563341 0.172944870 0.26193082 0.31568117 [6,] 0.313470411 0.39789663 0.16233473 0.386554685 0.05849470 0.08634294 [7,] 0.009389757 0.06578208 0.02171089 0.137771930 0.25644202 0.04109925 [8,] 0.096275278 0.08230833 0.22274109 0.273956611 0.01273555 0.04999772 [9,] 0.284132595 0.05740043 0.10187275 0.057478886 0.06312108 0.22567174 [10,] 0.042057800 0.20836109 0.05136257 0.003044006 0.15412353 0.26516300 [,19] [,20] [,21] [,22] [,23] [,24] [1,] 0.042825314 0.411087474 0.256871902 0.01404592 0.07847813 0.07682929 [2,] 0.274933538 0.247755873 0.051346873 0.42430084 0.10068366 0.01730828 [3,] 0.463276712 0.125425862 0.177516675 0.20115879 0.02629380 0.06181688 [4,] 0.045887300 0.081735898 0.261141487 0.30543406 0.04057899 0.54309655 [5,] 0.263448436 0.001888709 0.001450753 0.20700379 0.53454579 0.08012583 [6,] 0.256691834 0.058767803 0.368890460 0.17489220 0.04713138 0.25152361 [7,] 0.016698934 0.181037798 0.506071946 0.03114786 0.13800397 0.02916603 [8,] 0.309959326 0.313352105 0.171726731 0.34136324 0.34864096 0.03062124 [9,] 0.004867433 0.051287635 0.083040073 0.20894402 0.03887121 0.11104010 [10,] 0.176101608 0.062339072 0.045683172 0.12071591 0.48501801 0.04991461 [,25] [,26] [,27] [,28] [,29] [,30] [1,] 0.19922371 0.222327158 0.004615147 0.123032874 1.333033e-01 0.10499633 [2,] 0.17946893 0.121284015 0.194775426 0.103363060 3.548864e-01 0.31136864 [3,] 0.13725938 0.026831815 0.149839347 0.292802360 1.048007e-02 0.41380485 [4,] 0.09178874 0.292646065 0.041364668 0.215528758 2.559084e-02 0.08248495 [5,] 0.55597264 0.002253411 0.463613994 0.143460858 1.388204e-05 0.10886791 [6,] 0.23131294 0.153596058 0.006915154 0.117515102 1.661319e-01 0.08073784 [7,] 0.02784852 0.096354747 0.043803357 0.095406759 1.929009e-01 0.06237556 [8,] 0.22910570 0.205221331 0.355936980 0.043136707 5.120756e-01 0.04701681 [9,] 0.14947396 0.129772700 0.132955419 0.001894142 1.704600e-01 0.32538897 [10,] 0.01911305 0.307263671 0.085198625 0.025645943 1.941005e-01 0.07889224 $pval [1] 0.005 0.080 0.390 0.401 0.550 0.618 0.663 0.720 0.738 0.783 > > > > cleanEx() > nameEx("wasser.test") > ### * wasser.test > > flush(stderr()); flush(stdout()) > > ### Name: wasser.test > ### Title: Statistical Test with Wasserstein Metric > ### Aliases: wasser.test > > ### ** Examples > > nrep <- 12 > cases <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)) > cases <- do.call("rbind",cases) > control <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)) > control <- do.call("rbind",control) > d <- wasserMetric(cases,control) > testRes <- wasser.test(cases = cases,control = control,test.stat = d) > > > > cleanEx() > nameEx("wasserMetric") > ### * wasserMetric > > flush(stderr()); flush(stdout()) > > ### Name: wasserMetric > ### Title: Computing Wasserstein Metric > ### Aliases: wasserMetric > > ### ** Examples > > nrep <- 12 > cases <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)) > cases <- do.call("rbind",cases) > control <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)) > control <- do.call("rbind",control) > wasserMetric(cases,control) [1] 5.629211 11.172100 5.654134 7.072993 11.577022 7.094293 20.825060 [8] 7.018307 4.427331 26.760446 3.645962 5.101475 > > > > cleanEx() > nameEx("wasserMetric.v") > ### * wasserMetric.v > > flush(stderr()); flush(stdout()) > > ### Name: wasserMetric.v > ### Title: Wasserstein Metric > ### Aliases: wasserMetric.v > > ### ** Examples > > cases <- rbeta(30,1,5) > control <- rbeta(30,2,5) > wasserMetric.v(cases,control) [1] 2.687948 > > > > ### *