Back to Multiple platform build/check report for BioC 3.14 |
|
This page was generated on 2022-04-13 12:07:07 -0400 (Wed, 13 Apr 2022).
Hostname | OS | Arch (*) | R version | Installed pkgs |
---|---|---|---|---|
nebbiolo2 | Linux (Ubuntu 20.04.4 LTS) | x86_64 | 4.1.3 (2022-03-10) -- "One Push-Up" | 4324 |
tokay2 | Windows Server 2012 R2 Standard | x64 | 4.1.3 (2022-03-10) -- "One Push-Up" | 4077 |
machv2 | macOS 10.14.6 Mojave | x86_64 | 4.1.3 (2022-03-10) -- "One Push-Up" | 4137 |
Click on any hostname to see more info about the system (e.g. compilers) (*) as reported by 'uname -p', except on Windows and Mac OS X |
To the developers/maintainers of the preprocessCore package: - Please allow up to 24 hours (and sometimes 48 hours) for your latest push to git@git.bioconductor.org:packages/preprocessCore.git to reflect on this report. See How and When does the builder pull? When will my changes propagate? for more information. - Make sure to use the following settings in order to reproduce any error or warning you see on this page. |
Package 1454/2083 | Hostname | OS / Arch | INSTALL | BUILD | CHECK | BUILD BIN | ||||||||
preprocessCore 1.56.0 (landing page) Ben Bolstad
| nebbiolo2 | Linux (Ubuntu 20.04.4 LTS) / x86_64 | OK | OK | OK | |||||||||
tokay2 | Windows Server 2012 R2 Standard / x64 | OK | OK | OK | OK | |||||||||
machv2 | macOS 10.14.6 Mojave / x86_64 | OK | OK | OK | OK | |||||||||
Package: preprocessCore |
Version: 1.56.0 |
Command: C:\Users\biocbuild\bbs-3.14-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:preprocessCore.install-out.txt --library=C:\Users\biocbuild\bbs-3.14-bioc\R\library --no-vignettes --timings preprocessCore_1.56.0.tar.gz |
StartedAt: 2022-04-13 00:45:43 -0400 (Wed, 13 Apr 2022) |
EndedAt: 2022-04-13 00:46:41 -0400 (Wed, 13 Apr 2022) |
EllapsedTime: 58.1 seconds |
RetCode: 0 |
Status: OK |
CheckDir: preprocessCore.Rcheck |
Warnings: 0 |
############################################################################## ############################################################################## ### ### Running command: ### ### C:\Users\biocbuild\bbs-3.14-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:preprocessCore.install-out.txt --library=C:\Users\biocbuild\bbs-3.14-bioc\R\library --no-vignettes --timings preprocessCore_1.56.0.tar.gz ### ############################################################################## ############################################################################## * using log directory 'C:/Users/biocbuild/bbs-3.14-bioc/meat/preprocessCore.Rcheck' * using R version 4.1.3 (2022-03-10) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * using option '--no-vignettes' * checking for file 'preprocessCore/DESCRIPTION' ... OK * this is package 'preprocessCore' version '1.56.0' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'preprocessCore' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... NOTE Found a 'configure.in' file: 'configure.ac' has long been preferred. * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * loading checks for arch 'i386' ** 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 * loading checks for arch 'x64' ** 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 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 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 line endings in shell scripts ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking compiled code ... NOTE Note: information on .o files for i386 is not available Note: information on .o files for x64 is not available File 'C:/Users/biocbuild/bbs-3.14-bioc/R/library/preprocessCore/libs/i386/preprocessCore.dll': Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran) File 'C:/Users/biocbuild/bbs-3.14-bioc/R/library/preprocessCore/libs/x64/preprocessCore.dll': Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran) Compiled code should not call entry points which might terminate R nor write to stdout/stderr instead of to the console, nor use Fortran I/O nor system RNGs. The detected symbols are linked into the code but might come from libraries and not actually be called. See 'Writing portable packages' in the 'Writing R Extensions' manual. * checking examples ... ** running examples for arch 'i386' ... OK ** running examples for arch 'x64' ... OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... ** running tests for arch 'i386' ... Running 'PLMdtest.R' Running 'qnormtest.R' OK ** running tests for arch 'x64' ... Running 'PLMdtest.R' Running 'qnormtest.R' OK * checking PDF version of manual ... OK * DONE Status: 2 NOTEs See 'C:/Users/biocbuild/bbs-3.14-bioc/meat/preprocessCore.Rcheck/00check.log' for details.
preprocessCore.Rcheck/00install.out
############################################################################## ############################################################################## ### ### Running command: ### ### C:\cygwin\bin\curl.exe -O http://155.52.207.166/BBS/3.14/bioc/src/contrib/preprocessCore_1.56.0.tar.gz && rm -rf preprocessCore.buildbin-libdir && mkdir preprocessCore.buildbin-libdir && C:\Users\biocbuild\bbs-3.14-bioc\R\bin\R.exe CMD INSTALL --merge-multiarch --build --library=preprocessCore.buildbin-libdir preprocessCore_1.56.0.tar.gz && C:\Users\biocbuild\bbs-3.14-bioc\R\bin\R.exe CMD INSTALL preprocessCore_1.56.0.zip && rm preprocessCore_1.56.0.tar.gz preprocessCore_1.56.0.zip ### ############################################################################## ############################################################################## % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 127k 100 127k 0 0 557k 0 --:--:-- --:--:-- --:--:-- 558k install for i386 * installing *source* package 'preprocessCore' ... ** using staged installation ********************************************** WARNING: this package has a configure script It probably needs manual configuration ********************************************** ** libs "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_colSummarize.c -o R_colSummarize.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_plmd_interfaces.c -o R_plmd_interfaces.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_plmr_interfaces.c -o R_plmr_interfaces.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_rlm_interfaces.c -o R_rlm_interfaces.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_subColSummarize.c -o R_subColSummarize.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_subrcModel_interfaces.c -o R_subrcModel_interfaces.o R_subrcModel_interfaces.c: In function 'R_sub_rcModelSummarize_medianpolish': R_subrcModel_interfaces.c:207:11: warning: unused variable 'se' [-Wunused-variable] double *se; ^~ R_subrcModel_interfaces.c:206:11: warning: unused variable 'weights' [-Wunused-variable] double *weights; ^~~~~~~ R_subrcModel_interfaces.c:165:30: warning: unused variable 'buffer2' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~~ R_subrcModel_interfaces.c:165:21: warning: unused variable 'buffer' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~ R_subrcModel_interfaces.c:165:11: warning: unused variable 'results' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~~ R_subrcModel_interfaces.c: In function 'R_sub_rcModelSummarize_plm': R_subrcModel_interfaces.c:532:10: warning: unused variable 'scale' [-Wunused-variable] double scale=-1.0; ^~~~~ R_subrcModel_interfaces.c:485:30: warning: unused variable 'buffer2' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~~ R_subrcModel_interfaces.c:485:21: warning: unused variable 'buffer' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~ R_subrcModel_interfaces.c:485:11: warning: unused variable 'results' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~~ "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c avg.c -o avg.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c avg_log.c -o avg_log.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c biweight.c -o biweight.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c init_package.c -o init_package.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c lm.c -o lm.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c log_avg.c -o log_avg.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c log_median.c -o log_median.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c matrix_functions.c -o matrix_functions.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c median.c -o median.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c median_log.c -o median_log.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c medianpolish.c -o medianpolish.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c plmd.c -o plmd.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c plmr.c -o plmr.o plmr.c:279:13: warning: 'XTWX_R_inv' defined but not used [-Wunused-function] static void XTWX_R_inv(int *rows, int *cols, double *xtwx){ ^~~~~~~~~~ plmr.c:152:13: warning: 'XTWX_R' defined but not used [-Wunused-function] static void XTWX_R(int *rows, int *cols, double *out_weights, double *xtwx){ ^~~~~~ plmr.c:82:13: warning: 'XTWY_R' defined but not used [-Wunused-function] static void XTWY_R(int *rows, int *cols, double *out_weights, double *y,double *xtwy){ ^~~~~~ "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c psi_fns.c -o psi_fns.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c qnorm.c -o qnorm.o qnorm.c: In function 'qnorm_c_determine_target_l': qnorm.c:1908:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na; ^~~~~~ qnorm.c:1903:12: warning: unused variable 'j' [-Wunused-variable] size_t i,j,row_mean_ind; ^ qnorm.c: In function 'qnorm_c_determine_target_via_subset_l': qnorm.c:2507:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na; ^~~~~~ qnorm.c:2502:12: warning: unused variable 'j' [-Wunused-variable] size_t i,j,row_mean_ind; ^ qnorm.c: In function 'using_target_via_subset_part1': qnorm.c:2723:14: warning: variable 'ind' set but not used [-Wunused-but-set-variable] size_t i,j,ind,target_ind; ^~~ qnorm.c: In function 'using_target_via_subset_part2': qnorm.c:2822:11: warning: unused variable 'datvec' [-Wunused-variable] double *datvec; ^~~~~~ qnorm.c:2821:11: warning: unused variable 'sample_percentiles' [-Wunused-variable] double *sample_percentiles; ^~~~~~~~~~~~~~~~~~ qnorm.c: In function 'using_target_via_subset': qnorm.c:2971:11: warning: unused variable 'datvec' [-Wunused-variable] double *datvec; ^~~~~~ qnorm.c:2970:11: warning: unused variable 'sample_percentiles' [-Wunused-variable] double *sample_percentiles; ^~~~~~~~~~~~~~~~~~ qnorm.c:2966:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na = 0; ^~~~~~ qnorm.c:2965:7: warning: unused variable 'targetnon_na' [-Wunused-variable] int targetnon_na = targetrows; ^~~~~~~~~~~~ qnorm.c:2963:28: warning: unused variable 'target_ind_double_floor' [-Wunused-variable] double target_ind_double,target_ind_double_floor; ^~~~~~~~~~~~~~~~~~~~~~~ qnorm.c:2963:10: warning: unused variable 'target_ind_double' [-Wunused-variable] double target_ind_double,target_ind_double_floor; ^~~~~~~~~~~~~~~~~ qnorm.c:2962:10: warning: unused variable 'samplepercentile' [-Wunused-variable] double samplepercentile; ^~~~~~~~~~~~~~~~ qnorm.c:2961:11: warning: unused variable 'ranks' [-Wunused-variable] double *ranks = (double *)Calloc((rows),double); ^~~~~ qnorm.c:2959:11: warning: unused variable 'row_mean' [-Wunused-variable] double *row_mean = target; ^~~~~~~~ qnorm.c:2957:14: warning: unused variable 'dimat' [-Wunused-variable] dataitem **dimat; ^~~~~ qnorm.c:2955:18: warning: unused variable 'target_ind' [-Wunused-variable] size_t i,j,ind,target_ind; ^~~~~~~~~~ qnorm.c:2955:14: warning: unused variable 'ind' [-Wunused-variable] size_t i,j,ind,target_ind; ^~~ qnorm.c:2955:12: warning: unused variable 'j' [-Wunused-variable] size_t i,j,ind,target_ind; ^ qnorm.c: In function 'R_qnorm_using_target': qnorm.c:2113:3: warning: 'target_rows' may be used uninitialized in this function [-Wmaybe-uninitialized] qnorm_c_using_target_l(Xptr, rows, cols ,targetptr, target_rows); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qnorm.c: In function 'R_qnorm_using_target_via_subset': qnorm.c:3240:3: warning: 'target_rows' may be used uninitialized in this function [-Wmaybe-uninitialized] qnorm_c_using_target_via_subset_l(Xptr, rows, cols, subsetptr, targetptr, target_rows); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rlm.c -o rlm.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rlm_anova.c -o rlm_anova.o rlm_anova.c: In function 'rlm_fit_anova_given_probe_effects_engine': rlm_anova.c:1235:10: warning: unused variable 'endprobe' [-Wunused-variable] double endprobe; ^~~~~~~~ rlm_anova.c: In function 'rlm_compute_se_anova_given_probe_effects': rlm_anova.c:1426:19: warning: unused variable 'varderivpsi' [-Wunused-variable] double vs=0.0,m,varderivpsi=0.0; ^~~~~~~~~~~ rlm_anova.c:1426:17: warning: unused variable 'm' [-Wunused-variable] double vs=0.0,m,varderivpsi=0.0; ^ rlm_anova.c:1426:10: warning: unused variable 'vs' [-Wunused-variable] double vs=0.0,m,varderivpsi=0.0; ^~ rlm_anova.c:1419:10: warning: unused variable 'scale' [-Wunused-variable] double scale=0.0; ^~~~~ rlm_anova.c:1418:10: warning: unused variable 'Kappa' [-Wunused-variable] double Kappa=0.0; /* A correction factor */ ^~~~~ rlm_anova.c:1417:10: warning: unused variable 'sumderivpsi' [-Wunused-variable] double sumderivpsi=0.0; /* sum of psi'(r_i) */ ^~~~~~~~~~~ rlm_anova.c:1415:10: warning: unused variable 'sumpsi2' [-Wunused-variable] double sumpsi2=0.0; /* sum of psi(r_i)^2 */ ^~~~~~~ rlm_anova.c:1414:10: warning: unused variable 'k1' [-Wunused-variable] double k1 = psi_k; /* was 1.345; */ ^~ rlm_anova.c: In function 'rlm_wfit_anova_given_probe_effects_engine': rlm_anova.c:1505:10: warning: unused variable 'endprobe' [-Wunused-variable] double endprobe; ^~~~~~~~ "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rlm_se.c -o rlm_se.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rma_background4.c -o rma_background4.o rma_background4.c: In function 'R_rma_bg_correct': rma_background4.c:509:12: warning: 'PMcopy' may be used uninitialized in this function [-Wmaybe-uninitialized] return PMcopy; ^~~~~~ "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rma_common.c -o rma_common.o "C:/rtools40/mingw32/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c weightedkerneldensity.c -o weightedkerneldensity.o C:/rtools40/mingw32/bin/gcc -shared -s -static-libgcc -o preprocessCore.dll tmp.def R_colSummarize.o R_plmd_interfaces.o R_plmr_interfaces.o R_rlm_interfaces.o R_subColSummarize.o R_subrcModel_interfaces.o avg.o avg_log.o biweight.o init_package.o lm.o log_avg.o log_median.o matrix_functions.o median.o median_log.o medianpolish.o plmd.o plmr.o psi_fns.o qnorm.o rlm.o rlm_anova.o rlm_se.o rma_background4.o rma_common.o weightedkerneldensity.o -LC:/Users/BIOCBU~1/BBS-3~1.14-/R/bin/i386 -lRlapack -LC:/Users/BIOCBU~1/BBS-3~1.14-/R/bin/i386 -lRblas -lgfortran -lm -lquadmath -LC:/extsoft/lib/i386 -LC:/extsoft/lib -LC:/Users/BIOCBU~1/BBS-3~1.14-/R/bin/i386 -lR installing to C:/Users/biocbuild/bbs-3.14-bioc/meat/preprocessCore.buildbin-libdir/00LOCK-preprocessCore/00new/preprocessCore/libs/i386 ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices converting help for package 'preprocessCore' finding HTML links ... done colSummarize html normalize.quantiles html normalize.quantiles.in.blocks html normalize.quantiles.robust html normalize.quantiles.target html rcModelPLMd html rcModelPLMr html rcModels html rma.background.correct html subColSummarize html subrcModels html ** building package indices ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path install for x64 * installing *source* package 'preprocessCore' ... ********************************************** WARNING: this package has a configure script It probably needs manual configuration ********************************************** ** libs "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_colSummarize.c -o R_colSummarize.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_plmd_interfaces.c -o R_plmd_interfaces.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_plmr_interfaces.c -o R_plmr_interfaces.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_rlm_interfaces.c -o R_rlm_interfaces.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_subColSummarize.c -o R_subColSummarize.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c R_subrcModel_interfaces.c -o R_subrcModel_interfaces.o R_subrcModel_interfaces.c: In function 'R_sub_rcModelSummarize_medianpolish': R_subrcModel_interfaces.c:207:11: warning: unused variable 'se' [-Wunused-variable] double *se; ^~ R_subrcModel_interfaces.c:206:11: warning: unused variable 'weights' [-Wunused-variable] double *weights; ^~~~~~~ R_subrcModel_interfaces.c:165:30: warning: unused variable 'buffer2' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~~ R_subrcModel_interfaces.c:165:21: warning: unused variable 'buffer' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~ R_subrcModel_interfaces.c:165:11: warning: unused variable 'results' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~~ R_subrcModel_interfaces.c: In function 'R_sub_rcModelSummarize_plm': R_subrcModel_interfaces.c:532:10: warning: unused variable 'scale' [-Wunused-variable] double scale=-1.0; ^~~~~ R_subrcModel_interfaces.c:485:30: warning: unused variable 'buffer2' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~~ R_subrcModel_interfaces.c:485:21: warning: unused variable 'buffer' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~ R_subrcModel_interfaces.c:485:11: warning: unused variable 'results' [-Wunused-variable] double *results, *buffer, *buffer2; ^~~~~~~ "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c avg.c -o avg.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c avg_log.c -o avg_log.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c biweight.c -o biweight.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c init_package.c -o init_package.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c lm.c -o lm.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c log_avg.c -o log_avg.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c log_median.c -o log_median.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c matrix_functions.c -o matrix_functions.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c median.c -o median.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c median_log.c -o median_log.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c medianpolish.c -o medianpolish.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c plmd.c -o plmd.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c plmr.c -o plmr.o plmr.c:279:13: warning: 'XTWX_R_inv' defined but not used [-Wunused-function] static void XTWX_R_inv(int *rows, int *cols, double *xtwx){ ^~~~~~~~~~ plmr.c:152:13: warning: 'XTWX_R' defined but not used [-Wunused-function] static void XTWX_R(int *rows, int *cols, double *out_weights, double *xtwx){ ^~~~~~ plmr.c:82:13: warning: 'XTWY_R' defined but not used [-Wunused-function] static void XTWY_R(int *rows, int *cols, double *out_weights, double *y,double *xtwy){ ^~~~~~ "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c psi_fns.c -o psi_fns.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c qnorm.c -o qnorm.o qnorm.c: In function 'qnorm_c_determine_target_l': qnorm.c:1908:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na; ^~~~~~ qnorm.c:1903:12: warning: unused variable 'j' [-Wunused-variable] size_t i,j,row_mean_ind; ^ qnorm.c: In function 'qnorm_c_determine_target_via_subset_l': qnorm.c:2507:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na; ^~~~~~ qnorm.c:2502:12: warning: unused variable 'j' [-Wunused-variable] size_t i,j,row_mean_ind; ^ qnorm.c: In function 'using_target_via_subset_part1': qnorm.c:2723:14: warning: variable 'ind' set but not used [-Wunused-but-set-variable] size_t i,j,ind,target_ind; ^~~ qnorm.c: In function 'using_target_via_subset_part2': qnorm.c:2822:11: warning: unused variable 'datvec' [-Wunused-variable] double *datvec; ^~~~~~ qnorm.c:2821:11: warning: unused variable 'sample_percentiles' [-Wunused-variable] double *sample_percentiles; ^~~~~~~~~~~~~~~~~~ qnorm.c: In function 'using_target_via_subset': qnorm.c:2971:11: warning: unused variable 'datvec' [-Wunused-variable] double *datvec; ^~~~~~ qnorm.c:2970:11: warning: unused variable 'sample_percentiles' [-Wunused-variable] double *sample_percentiles; ^~~~~~~~~~~~~~~~~~ qnorm.c:2966:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na = 0; ^~~~~~ qnorm.c:2965:7: warning: unused variable 'targetnon_na' [-Wunused-variable] int targetnon_na = targetrows; ^~~~~~~~~~~~ qnorm.c:2963:28: warning: unused variable 'target_ind_double_floor' [-Wunused-variable] double target_ind_double,target_ind_double_floor; ^~~~~~~~~~~~~~~~~~~~~~~ qnorm.c:2963:10: warning: unused variable 'target_ind_double' [-Wunused-variable] double target_ind_double,target_ind_double_floor; ^~~~~~~~~~~~~~~~~ qnorm.c:2962:10: warning: unused variable 'samplepercentile' [-Wunused-variable] double samplepercentile; ^~~~~~~~~~~~~~~~ qnorm.c:2961:11: warning: unused variable 'ranks' [-Wunused-variable] double *ranks = (double *)Calloc((rows),double); ^~~~~ qnorm.c:2959:11: warning: unused variable 'row_mean' [-Wunused-variable] double *row_mean = target; ^~~~~~~~ qnorm.c:2957:14: warning: unused variable 'dimat' [-Wunused-variable] dataitem **dimat; ^~~~~ qnorm.c:2955:18: warning: unused variable 'target_ind' [-Wunused-variable] size_t i,j,ind,target_ind; ^~~~~~~~~~ qnorm.c:2955:14: warning: unused variable 'ind' [-Wunused-variable] size_t i,j,ind,target_ind; ^~~ qnorm.c:2955:12: warning: unused variable 'j' [-Wunused-variable] size_t i,j,ind,target_ind; ^ qnorm.c: In function 'R_qnorm_using_target': qnorm.c:2113:3: warning: 'target_rows' may be used uninitialized in this function [-Wmaybe-uninitialized] qnorm_c_using_target_l(Xptr, rows, cols ,targetptr, target_rows); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qnorm.c: In function 'R_qnorm_using_target_via_subset': qnorm.c:3240:3: warning: 'target_rows' may be used uninitialized in this function [-Wmaybe-uninitialized] qnorm_c_using_target_via_subset_l(Xptr, rows, cols, subsetptr, targetptr, target_rows); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rlm.c -o rlm.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rlm_anova.c -o rlm_anova.o rlm_anova.c: In function 'rlm_fit_anova_given_probe_effects_engine': rlm_anova.c:1235:10: warning: unused variable 'endprobe' [-Wunused-variable] double endprobe; ^~~~~~~~ rlm_anova.c: In function 'rlm_compute_se_anova_given_probe_effects': rlm_anova.c:1426:19: warning: unused variable 'varderivpsi' [-Wunused-variable] double vs=0.0,m,varderivpsi=0.0; ^~~~~~~~~~~ rlm_anova.c:1426:17: warning: unused variable 'm' [-Wunused-variable] double vs=0.0,m,varderivpsi=0.0; ^ rlm_anova.c:1426:10: warning: unused variable 'vs' [-Wunused-variable] double vs=0.0,m,varderivpsi=0.0; ^~ rlm_anova.c:1419:10: warning: unused variable 'scale' [-Wunused-variable] double scale=0.0; ^~~~~ rlm_anova.c:1418:10: warning: unused variable 'Kappa' [-Wunused-variable] double Kappa=0.0; /* A correction factor */ ^~~~~ rlm_anova.c:1417:10: warning: unused variable 'sumderivpsi' [-Wunused-variable] double sumderivpsi=0.0; /* sum of psi'(r_i) */ ^~~~~~~~~~~ rlm_anova.c:1415:10: warning: unused variable 'sumpsi2' [-Wunused-variable] double sumpsi2=0.0; /* sum of psi(r_i)^2 */ ^~~~~~~ rlm_anova.c:1414:10: warning: unused variable 'k1' [-Wunused-variable] double k1 = psi_k; /* was 1.345; */ ^~ rlm_anova.c: In function 'rlm_wfit_anova_given_probe_effects_engine': rlm_anova.c:1505:10: warning: unused variable 'endprobe' [-Wunused-variable] double endprobe; ^~~~~~~~ "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rlm_se.c -o rlm_se.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rma_background4.c -o rma_background4.o rma_background4.c: In function 'R_rma_bg_correct': rma_background4.c:509:12: warning: 'PMcopy' may be used uninitialized in this function [-Wmaybe-uninitialized] return PMcopy; ^~~~~~ "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c rma_common.c -o rma_common.o "C:/rtools40/mingw64/bin/"gcc -I"C:/Users/BIOCBU~1/BBS-3~1.14-/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c weightedkerneldensity.c -o weightedkerneldensity.o C:/rtools40/mingw64/bin/gcc -shared -s -static-libgcc -o preprocessCore.dll tmp.def R_colSummarize.o R_plmd_interfaces.o R_plmr_interfaces.o R_rlm_interfaces.o R_subColSummarize.o R_subrcModel_interfaces.o avg.o avg_log.o biweight.o init_package.o lm.o log_avg.o log_median.o matrix_functions.o median.o median_log.o medianpolish.o plmd.o plmr.o psi_fns.o qnorm.o rlm.o rlm_anova.o rlm_se.o rma_background4.o rma_common.o weightedkerneldensity.o -LC:/Users/BIOCBU~1/BBS-3~1.14-/R/bin/x64 -lRlapack -LC:/Users/BIOCBU~1/BBS-3~1.14-/R/bin/x64 -lRblas -lgfortran -lm -lquadmath -LC:/extsoft/lib/x64 -LC:/extsoft/lib -LC:/Users/BIOCBU~1/BBS-3~1.14-/R/bin/x64 -lR installing to C:/Users/biocbuild/bbs-3.14-bioc/meat/preprocessCore.buildbin-libdir/preprocessCore/libs/x64 ** testing if installed package can be loaded * MD5 sums packaged installation of 'preprocessCore' as preprocessCore_1.56.0.zip * DONE (preprocessCore) * installing to library 'C:/Users/biocbuild/bbs-3.14-bioc/R/library' package 'preprocessCore' successfully unpacked and MD5 sums checked
preprocessCore.Rcheck/tests_i386/PLMdtest.Rout R version 4.1.3 (2022-03-10) -- "One Push-Up" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: i386-w64-mingw32/i386 (32-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. 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. > > > library(preprocessCore) > > > values <- rnorm(100) > group.labels <- sample(0:4,replace=TRUE, 100) > > results <- double(10000) > ngroups <- 2 > > > for (i in 1:10000){ + values <- rnorm(100,sd=1) + values <- values/sd(values) + group.labels <- sample(0:(ngroups-1),replace=TRUE, 100) + blah <- .C("R_split_test",as.double(values), as.integer(100), as.integer(ngroups), as.integer(group.labels),double(1)) + results[i] <- blah[[5]] + } > > plot(sort(results),qchisq(0:9999/10000,ngroups-1)) > lm(qchisq(0:9999/10000,ngroups-1) ~ sort(results)) Call: lm(formula = qchisq(0:9999/10000, ngroups - 1) ~ sort(results)) Coefficients: (Intercept) sort(results) 0.009844 0.970882 > > > > boxplot(values ~ group.labels,ylim=c(-2,2)) > > > > sc <- median(abs(resid(lm(values ~ 1))))/0.6745 > sum((resid(lm(values ~ 1))/sc)^2)/2 [1] 63.12753 > sum((resid(lm(values ~ as.factor(group.labels)))/sc)^2)/2 [1] 62.476 > > > values <- rnorm(100) > group.labels <- sample(0:4,replace=TRUE, 100) > values[group.labels == 1] <- values[group.labels == 1] + 0.4 > > > blah <- .C("R_split_test",as.double(values), as.integer(100), as.integer(5), as.integer(group.labels),double(1)) > > boxplot(values ~ group.labels,ylim=c(-2,2)) > > > > library(preprocessCore) > > .C("R_test_get_design_matrix",as.integer(4),as.integer(5)) 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 -1.00 -1.00 -1.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 -1.00 -1.00 -1.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 -1.00 -1.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 -1.00 -1.00 -1.00 -1.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 -1.00 -1.00 -1.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 -1.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 [[1]] [1] 4 [[2]] [1] 5 > > > > chips <- as.factor(rep(c(1,2,3,4,5,6),c(5,5,5,5,5,5))) > probes <- rep(c(1,3,4,5,6),6) > > probes[c(1,6,11)] <- 2 > ##probes[24 + c(8,16,24)] <- 10 > probes <- as.factor(probes) > > > model.matrix(~ -1 + probes)%*%contr.sum(6) [,1] [,2] [,3] [,4] [,5] 1 0 1 0 0 0 2 0 0 1 0 0 3 0 0 0 1 0 4 0 0 0 0 1 5 -1 -1 -1 -1 -1 6 0 1 0 0 0 7 0 0 1 0 0 8 0 0 0 1 0 9 0 0 0 0 1 10 -1 -1 -1 -1 -1 11 0 1 0 0 0 12 0 0 1 0 0 13 0 0 0 1 0 14 0 0 0 0 1 15 -1 -1 -1 -1 -1 16 1 0 0 0 0 17 0 0 1 0 0 18 0 0 0 1 0 19 0 0 0 0 1 20 -1 -1 -1 -1 -1 21 1 0 0 0 0 22 0 0 1 0 0 23 0 0 0 1 0 24 0 0 0 0 1 25 -1 -1 -1 -1 -1 26 1 0 0 0 0 27 0 0 1 0 0 28 0 0 0 1 0 29 0 0 0 0 1 30 -1 -1 -1 -1 -1 > > > probes <- rep(c(1,3,4,5,6),6) > > probes[c(1,6,11)] <- 2 > probes[c(20,25,30)] <- 7 > probes <- as.factor(probes) > model.matrix(~ -1 + probes)%*%contr.sum(7) [,1] [,2] [,3] [,4] [,5] [,6] 1 0 1 0 0 0 0 2 0 0 1 0 0 0 3 0 0 0 1 0 0 4 0 0 0 0 1 0 5 0 0 0 0 0 1 6 0 1 0 0 0 0 7 0 0 1 0 0 0 8 0 0 0 1 0 0 9 0 0 0 0 1 0 10 0 0 0 0 0 1 11 0 1 0 0 0 0 12 0 0 1 0 0 0 13 0 0 0 1 0 0 14 0 0 0 0 1 0 15 0 0 0 0 0 1 16 1 0 0 0 0 0 17 0 0 1 0 0 0 18 0 0 0 1 0 0 19 0 0 0 0 1 0 20 -1 -1 -1 -1 -1 -1 21 1 0 0 0 0 0 22 0 0 1 0 0 0 23 0 0 0 1 0 0 24 0 0 0 0 1 0 25 -1 -1 -1 -1 -1 -1 26 1 0 0 0 0 0 27 0 0 1 0 0 0 28 0 0 0 1 0 0 29 0 0 0 0 1 0 30 -1 -1 -1 -1 -1 -1 > > > > > probes <- rep(c(1,3,4,5,6),6) > > probes[c(1,6,11)] <- 2 > probes[c(5,10,15)] <- 7 > probes <- as.factor(probes) > model.matrix(~ -1 + probes)%*%contr.sum(7) [,1] [,2] [,3] [,4] [,5] [,6] 1 0 1 0 0 0 0 2 0 0 1 0 0 0 3 0 0 0 1 0 0 4 0 0 0 0 1 0 5 -1 -1 -1 -1 -1 -1 6 0 1 0 0 0 0 7 0 0 1 0 0 0 8 0 0 0 1 0 0 9 0 0 0 0 1 0 10 -1 -1 -1 -1 -1 -1 11 0 1 0 0 0 0 12 0 0 1 0 0 0 13 0 0 0 1 0 0 14 0 0 0 0 1 0 15 -1 -1 -1 -1 -1 -1 16 1 0 0 0 0 0 17 0 0 1 0 0 0 18 0 0 0 1 0 0 19 0 0 0 0 1 0 20 0 0 0 0 0 1 21 1 0 0 0 0 0 22 0 0 1 0 0 0 23 0 0 0 1 0 0 24 0 0 0 0 1 0 25 0 0 0 0 0 1 26 1 0 0 0 0 0 27 0 0 1 0 0 0 28 0 0 0 1 0 0 29 0 0 0 0 1 0 30 0 0 0 0 0 1 > > > > probes <- rep(c(1,3,4,5,6),6) > > probes[c(1,6,11)] <- 2 > probes[1+c(1,6,11)] <- 8 > probes[2+c(1,6,11)] <- 9 > probes[3+c(1,6,11)] <- 10 > probes[c(5,10,15)] <- 7 > probes <- as.factor(probes) > model.matrix(~ -1 + probes)%*%contr.sum(10) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] 1 0 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 1 0 3 0 0 0 0 0 0 0 0 1 4 -1 -1 -1 -1 -1 -1 -1 -1 -1 5 0 0 0 0 0 0 1 0 0 6 0 1 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 1 0 8 0 0 0 0 0 0 0 0 1 9 -1 -1 -1 -1 -1 -1 -1 -1 -1 10 0 0 0 0 0 0 1 0 0 11 0 1 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 1 0 13 0 0 0 0 0 0 0 0 1 14 -1 -1 -1 -1 -1 -1 -1 -1 -1 15 0 0 0 0 0 0 1 0 0 16 1 0 0 0 0 0 0 0 0 17 0 0 1 0 0 0 0 0 0 18 0 0 0 1 0 0 0 0 0 19 0 0 0 0 1 0 0 0 0 20 0 0 0 0 0 1 0 0 0 21 1 0 0 0 0 0 0 0 0 22 0 0 1 0 0 0 0 0 0 23 0 0 0 1 0 0 0 0 0 24 0 0 0 0 1 0 0 0 0 25 0 0 0 0 0 1 0 0 0 26 1 0 0 0 0 0 0 0 0 27 0 0 1 0 0 0 0 0 0 28 0 0 0 1 0 0 0 0 0 29 0 0 0 0 1 0 0 0 0 30 0 0 0 0 0 1 0 0 0 > > > > > > > > > > true.probes <- c(4,3,2,1,-1,-2,-3,-4) > > true.chips <- c(8,9,10,11,12,13) > > > y <- outer(true.probes,true.chips,"+") > > > > estimate.coefficients <- function(y){ + + + colmean <- apply(y,2,mean) + + y <- sweep(y,2,FUN="-",colmean) + + rowmean <- apply(y,1,mean) + y <- sweep(y,1,FUN="-",rowmean) + + + list(y,colmean,rowmean) + } > estimate.coefficients(y) [[1]] [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0 0 0 0 0 0 [2,] 0 0 0 0 0 0 [3,] 0 0 0 0 0 0 [4,] 0 0 0 0 0 0 [5,] 0 0 0 0 0 0 [6,] 0 0 0 0 0 0 [7,] 0 0 0 0 0 0 [8,] 0 0 0 0 0 0 [[2]] [1] 8 9 10 11 12 13 [[3]] [1] 4 3 2 1 -1 -2 -3 -4 > > > > y <- outer(true.probes,true.chips,"+") > > > estimate.coefficients(y) [[1]] [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0 0 0 0 0 0 [2,] 0 0 0 0 0 0 [3,] 0 0 0 0 0 0 [4,] 0 0 0 0 0 0 [5,] 0 0 0 0 0 0 [6,] 0 0 0 0 0 0 [7,] 0 0 0 0 0 0 [8,] 0 0 0 0 0 0 [[2]] [1] 8 9 10 11 12 13 [[3]] [1] 4 3 2 1 -1 -2 -3 -4 > > > > > y2 <- sweep(y,2,FUN="-",apply(y,2,mean)) > > > > c(3.875, 2.875, 1.875, 0.875, + -1.125, -2.125, -3.125, -4, -2.25) [1] 3.875 2.875 1.875 0.875 -1.125 -2.125 -3.125 -4.000 -2.250 > > > > > cp <- rep(c(1,2,3,4,5,6),rep(8,6)) > pr <- rep(c(1,2,3,4,5,6,7,8),6) > > > pr[c(32,40,48)] <- 9 > > > > > true.probes <- c(4,3,2,1,-1,-2,-3,-4) > > true.chips <- c(8,9,10,11,12,10) > > > y <- outer(true.probes,true.chips,"+") + rnorm(48,0,0.1) > > y[8,4:6] <- c(11,12,10)+2 + rnorm(3,0,0.1) > > > lm(as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr),"contr.sum")) Call: lm(formula = as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr), "contr.sum")) Coefficients: as.factor(cp)1 as.factor(cp)2 8.2782 9.1961 as.factor(cp)3 as.factor(cp)4 10.2540 11.2477 as.factor(cp)5 as.factor(cp)6 12.2499 10.2284 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 3.7945 2.7824 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 1.7943 0.8146 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.3032 -2.2113 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -3.2337 -4.2275 > > > matplot(y,type="l") > matplot(matrix(fitted( lm(as.vector(y) ~ -1 + as.factor(cp) + + C(as.factor(pr),"contr.sum"))),ncol=6),type="l") > > > library(preprocessCore) > true.probes <- c(4,3,2,1,-1,-2,-3,-4) > > true.chips <- c(8,9,10,11,12,10) > > y <- outer(true.probes,true.chips,"+") + rnorm(48,0,0.25) > > y[8,4:6] <- c(11,12,10)+ 2.5 + rnorm(3,0,0.25) > y[5,4:6] <- c(11,12,10)+-2.5 + rnorm(3,0,0.25) > > > > ###.C("plmd_fit_R", as.double(y), as.integer(8), as.integer(6), > ### as.integer(2), as.integer(c(1,1,1,2,2,2) - 1), > ### double(6 +2*8), > ### double(48), > ### double(48)) > > ###matplot(matrix(.C("plmd_fit_R", as.double(y), as.integer(8), as.integer(6), > ### as.integer(2), as.integer(c(1,1,1,2,2,2) - 1), > ### double(6 +2*8), > ### double(48), > ### double(48))[[7]],ncol=6)) > ### > > > ##.Call("R_plmd_model",y,0,1.3345,as.integer(c(1,1,1,2,2,2) - 1),as.integer(2)) > rcModelPLM(y) $Estimates [1] 8.2293521 9.2491577 10.4546856 11.1470364 12.3535590 10.2966544 [7] 3.6449937 2.6031587 1.5682798 0.7389377 -1.9833769 -2.2147104 [13] -3.3146857 -1.0425970 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [2,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [3,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [4,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [5,] 0.6146608 0.5415424 1.0000000 0.6917767 1.0000000 0.8677183 [6,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [7,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [8,] 0.1495257 0.2007831 0.1636812 0.1731845 0.1660841 0.1675639 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.07102501 -0.20044845 0.38695062 0.01443375 0.009013225 -0.28097415 [2,] -0.03839084 0.14045600 -0.02890401 -0.10878493 -0.043772095 0.07939588 [3,] 0.29217170 -0.09134199 -0.52338214 -0.02613386 0.023009116 0.32567718 [4,] 0.13552880 -0.26682504 -0.23943262 0.39353349 -0.312427255 0.28962263 [5,] 0.88885535 1.00883555 0.40964427 -0.78934450 -0.410259184 -0.62924410 [6,] -0.41984626 0.38257430 0.32807663 -0.18136423 0.196103775 -0.30554422 [7,] -0.04062829 0.03546227 0.21326014 -0.09184329 -0.007870268 -0.10838055 [8,] -3.65291482 -2.72037032 -3.33705270 3.15391535 3.288711555 3.25971067 $StdErrors [1] 0.2583040 0.2576442 0.2509669 0.2558492 0.2508716 0.2529573 0.2585329 [8] 0.2585329 0.2585329 0.2585329 0.2855691 0.2585329 0.2585329 0.5681602 $Scale [1] 0.406078 > rcModelPLMd(y,c(1,1,1,2,2,2)) $Estimates [1] 7.9283983 9.0355429 10.1557647 10.7933613 12.0699952 9.9978115 [7] 3.9190119 2.8947539 1.9017841 0.9968518 -0.9305282 -2.2809655 [13] -1.9008693 -3.0230905 -4.0804909 2.5035428 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.0000000 1.0000000 0.7439326 1.0000000 1 1.0000000 [2,] 1.0000000 1.0000000 1.0000000 1.0000000 1 1.0000000 [3,] 1.0000000 1.0000000 0.5493371 1.0000000 1 1.0000000 [4,] 1.0000000 0.9847527 1.0000000 0.6264153 1 0.9272809 [5,] 1.0000000 1.0000000 0.8904351 1.0000000 1 1.0000000 [6,] 0.7082644 1.0000000 0.9782279 1.0000000 1 0.9561688 [7,] 1.0000000 1.0000000 1.0000000 1.0000000 1 1.0000000 [8,] 0.9753285 0.5771688 1.0000000 1.0000000 1 1.0000000 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.09796058 -0.26085180 0.411853348 0.094090618 0.01855885 -0.25614938 [2,] -0.02903231 0.06247562 -0.021578313 -0.046705100 -0.05180351 0.08664361 [3,] 0.25962117 -0.21123143 -0.557965506 -0.005963089 -0.02693136 0.29101585 [4,] 0.17856840 -0.31112434 -0.198425848 0.489294406 -0.28677759 0.33055144 [5,] 0.13696041 0.16960170 -0.344283507 -0.138080790 0.17089328 -0.03281249 [6,] -0.43273365 0.28234800 0.313156408 -0.141530312 0.16582644 -0.32054240 [7,] -0.03126976 -0.04251811 0.220585834 -0.029763461 -0.01590168 -0.10113282 [8,] -0.31406717 0.53113843 -0.000237869 -0.038549389 0.02613557 0.01241382 $StdErrors [1] 0.1252412 0.1262767 0.1630013 0.1170735 0.1073181 0.1267576 0.1284244 [8] 0.1158185 0.1284244 0.1633479 0.2011620 0.1642556 0.1627408 0.1158185 [15] 0.2998748 0.0000000 $WasSplit [1] 0 0 0 0 1 0 0 1 > > ###R_plmd_model(SEXP Y, SEXP PsiCode, SEXP PsiK, SEXP Groups, SEXP Ngroups) > > > > > > pr[seq(3,48,8)][1:3] <- 10 > > y[seq(3,48,8)][1:3] <- c(8,9,10) -3 + rnorm(3,0,0.1) > lm(as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr),"contr.sum")) Call: lm(formula = as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr), "contr.sum")) Coefficients: as.factor(cp)1 as.factor(cp)2 7.880 9.066 as.factor(cp)3 as.factor(cp)4 10.161 10.564 as.factor(cp)5 as.factor(cp)6 11.818 9.747 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 4.061 3.019 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 2.232 1.155 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.488 -1.799 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -2.899 -4.004 C(as.factor(pr), "contr.sum")9 2.748 > > > proc.time() user system elapsed 2.21 0.06 2.26 |
preprocessCore.Rcheck/tests_x64/PLMdtest.Rout R version 4.1.3 (2022-03-10) -- "One Push-Up" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (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. 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. > > > library(preprocessCore) > > > values <- rnorm(100) > group.labels <- sample(0:4,replace=TRUE, 100) > > results <- double(10000) > ngroups <- 2 > > > for (i in 1:10000){ + values <- rnorm(100,sd=1) + values <- values/sd(values) + group.labels <- sample(0:(ngroups-1),replace=TRUE, 100) + blah <- .C("R_split_test",as.double(values), as.integer(100), as.integer(ngroups), as.integer(group.labels),double(1)) + results[i] <- blah[[5]] + } > > plot(sort(results),qchisq(0:9999/10000,ngroups-1)) > lm(qchisq(0:9999/10000,ngroups-1) ~ sort(results)) Call: lm(formula = qchisq(0:9999/10000, ngroups - 1) ~ sort(results)) Coefficients: (Intercept) sort(results) 0.01297 0.96996 > > > > boxplot(values ~ group.labels,ylim=c(-2,2)) > > > > sc <- median(abs(resid(lm(values ~ 1))))/0.6745 > sum((resid(lm(values ~ 1))/sc)^2)/2 [1] 66.08755 > sum((resid(lm(values ~ as.factor(group.labels)))/sc)^2)/2 [1] 63.90945 > > > values <- rnorm(100) > group.labels <- sample(0:4,replace=TRUE, 100) > values[group.labels == 1] <- values[group.labels == 1] + 0.4 > > > blah <- .C("R_split_test",as.double(values), as.integer(100), as.integer(5), as.integer(group.labels),double(1)) > > boxplot(values ~ group.labels,ylim=c(-2,2)) > > > > library(preprocessCore) > > .C("R_test_get_design_matrix",as.integer(4),as.integer(5)) 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 -1.00 -1.00 -1.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 -1.00 -1.00 -1.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 -1.00 -1.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 -1.00 -1.00 -1.00 -1.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 -1.00 -1.00 -1.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 -1.00 -1.00 -1.00 -1.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 [[1]] [1] 4 [[2]] [1] 5 > > > > chips <- as.factor(rep(c(1,2,3,4,5,6),c(5,5,5,5,5,5))) > probes <- rep(c(1,3,4,5,6),6) > > probes[c(1,6,11)] <- 2 > ##probes[24 + c(8,16,24)] <- 10 > probes <- as.factor(probes) > > > model.matrix(~ -1 + probes)%*%contr.sum(6) [,1] [,2] [,3] [,4] [,5] 1 0 1 0 0 0 2 0 0 1 0 0 3 0 0 0 1 0 4 0 0 0 0 1 5 -1 -1 -1 -1 -1 6 0 1 0 0 0 7 0 0 1 0 0 8 0 0 0 1 0 9 0 0 0 0 1 10 -1 -1 -1 -1 -1 11 0 1 0 0 0 12 0 0 1 0 0 13 0 0 0 1 0 14 0 0 0 0 1 15 -1 -1 -1 -1 -1 16 1 0 0 0 0 17 0 0 1 0 0 18 0 0 0 1 0 19 0 0 0 0 1 20 -1 -1 -1 -1 -1 21 1 0 0 0 0 22 0 0 1 0 0 23 0 0 0 1 0 24 0 0 0 0 1 25 -1 -1 -1 -1 -1 26 1 0 0 0 0 27 0 0 1 0 0 28 0 0 0 1 0 29 0 0 0 0 1 30 -1 -1 -1 -1 -1 > > > probes <- rep(c(1,3,4,5,6),6) > > probes[c(1,6,11)] <- 2 > probes[c(20,25,30)] <- 7 > probes <- as.factor(probes) > model.matrix(~ -1 + probes)%*%contr.sum(7) [,1] [,2] [,3] [,4] [,5] [,6] 1 0 1 0 0 0 0 2 0 0 1 0 0 0 3 0 0 0 1 0 0 4 0 0 0 0 1 0 5 0 0 0 0 0 1 6 0 1 0 0 0 0 7 0 0 1 0 0 0 8 0 0 0 1 0 0 9 0 0 0 0 1 0 10 0 0 0 0 0 1 11 0 1 0 0 0 0 12 0 0 1 0 0 0 13 0 0 0 1 0 0 14 0 0 0 0 1 0 15 0 0 0 0 0 1 16 1 0 0 0 0 0 17 0 0 1 0 0 0 18 0 0 0 1 0 0 19 0 0 0 0 1 0 20 -1 -1 -1 -1 -1 -1 21 1 0 0 0 0 0 22 0 0 1 0 0 0 23 0 0 0 1 0 0 24 0 0 0 0 1 0 25 -1 -1 -1 -1 -1 -1 26 1 0 0 0 0 0 27 0 0 1 0 0 0 28 0 0 0 1 0 0 29 0 0 0 0 1 0 30 -1 -1 -1 -1 -1 -1 > > > > > probes <- rep(c(1,3,4,5,6),6) > > probes[c(1,6,11)] <- 2 > probes[c(5,10,15)] <- 7 > probes <- as.factor(probes) > model.matrix(~ -1 + probes)%*%contr.sum(7) [,1] [,2] [,3] [,4] [,5] [,6] 1 0 1 0 0 0 0 2 0 0 1 0 0 0 3 0 0 0 1 0 0 4 0 0 0 0 1 0 5 -1 -1 -1 -1 -1 -1 6 0 1 0 0 0 0 7 0 0 1 0 0 0 8 0 0 0 1 0 0 9 0 0 0 0 1 0 10 -1 -1 -1 -1 -1 -1 11 0 1 0 0 0 0 12 0 0 1 0 0 0 13 0 0 0 1 0 0 14 0 0 0 0 1 0 15 -1 -1 -1 -1 -1 -1 16 1 0 0 0 0 0 17 0 0 1 0 0 0 18 0 0 0 1 0 0 19 0 0 0 0 1 0 20 0 0 0 0 0 1 21 1 0 0 0 0 0 22 0 0 1 0 0 0 23 0 0 0 1 0 0 24 0 0 0 0 1 0 25 0 0 0 0 0 1 26 1 0 0 0 0 0 27 0 0 1 0 0 0 28 0 0 0 1 0 0 29 0 0 0 0 1 0 30 0 0 0 0 0 1 > > > > probes <- rep(c(1,3,4,5,6),6) > > probes[c(1,6,11)] <- 2 > probes[1+c(1,6,11)] <- 8 > probes[2+c(1,6,11)] <- 9 > probes[3+c(1,6,11)] <- 10 > probes[c(5,10,15)] <- 7 > probes <- as.factor(probes) > model.matrix(~ -1 + probes)%*%contr.sum(10) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] 1 0 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 1 0 3 0 0 0 0 0 0 0 0 1 4 -1 -1 -1 -1 -1 -1 -1 -1 -1 5 0 0 0 0 0 0 1 0 0 6 0 1 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 1 0 8 0 0 0 0 0 0 0 0 1 9 -1 -1 -1 -1 -1 -1 -1 -1 -1 10 0 0 0 0 0 0 1 0 0 11 0 1 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 1 0 13 0 0 0 0 0 0 0 0 1 14 -1 -1 -1 -1 -1 -1 -1 -1 -1 15 0 0 0 0 0 0 1 0 0 16 1 0 0 0 0 0 0 0 0 17 0 0 1 0 0 0 0 0 0 18 0 0 0 1 0 0 0 0 0 19 0 0 0 0 1 0 0 0 0 20 0 0 0 0 0 1 0 0 0 21 1 0 0 0 0 0 0 0 0 22 0 0 1 0 0 0 0 0 0 23 0 0 0 1 0 0 0 0 0 24 0 0 0 0 1 0 0 0 0 25 0 0 0 0 0 1 0 0 0 26 1 0 0 0 0 0 0 0 0 27 0 0 1 0 0 0 0 0 0 28 0 0 0 1 0 0 0 0 0 29 0 0 0 0 1 0 0 0 0 30 0 0 0 0 0 1 0 0 0 > > > > > > > > > > true.probes <- c(4,3,2,1,-1,-2,-3,-4) > > true.chips <- c(8,9,10,11,12,13) > > > y <- outer(true.probes,true.chips,"+") > > > > estimate.coefficients <- function(y){ + + + colmean <- apply(y,2,mean) + + y <- sweep(y,2,FUN="-",colmean) + + rowmean <- apply(y,1,mean) + y <- sweep(y,1,FUN="-",rowmean) + + + list(y,colmean,rowmean) + } > estimate.coefficients(y) [[1]] [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0 0 0 0 0 0 [2,] 0 0 0 0 0 0 [3,] 0 0 0 0 0 0 [4,] 0 0 0 0 0 0 [5,] 0 0 0 0 0 0 [6,] 0 0 0 0 0 0 [7,] 0 0 0 0 0 0 [8,] 0 0 0 0 0 0 [[2]] [1] 8 9 10 11 12 13 [[3]] [1] 4 3 2 1 -1 -2 -3 -4 > > > > y <- outer(true.probes,true.chips,"+") > > > estimate.coefficients(y) [[1]] [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0 0 0 0 0 0 [2,] 0 0 0 0 0 0 [3,] 0 0 0 0 0 0 [4,] 0 0 0 0 0 0 [5,] 0 0 0 0 0 0 [6,] 0 0 0 0 0 0 [7,] 0 0 0 0 0 0 [8,] 0 0 0 0 0 0 [[2]] [1] 8 9 10 11 12 13 [[3]] [1] 4 3 2 1 -1 -2 -3 -4 > > > > > y2 <- sweep(y,2,FUN="-",apply(y,2,mean)) > > > > c(3.875, 2.875, 1.875, 0.875, + -1.125, -2.125, -3.125, -4, -2.25) [1] 3.875 2.875 1.875 0.875 -1.125 -2.125 -3.125 -4.000 -2.250 > > > > > cp <- rep(c(1,2,3,4,5,6),rep(8,6)) > pr <- rep(c(1,2,3,4,5,6,7,8),6) > > > pr[c(32,40,48)] <- 9 > > > > > true.probes <- c(4,3,2,1,-1,-2,-3,-4) > > true.chips <- c(8,9,10,11,12,10) > > > y <- outer(true.probes,true.chips,"+") + rnorm(48,0,0.1) > > y[8,4:6] <- c(11,12,10)+2 + rnorm(3,0,0.1) > > > lm(as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr),"contr.sum")) Call: lm(formula = as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr), "contr.sum")) Coefficients: as.factor(cp)1 as.factor(cp)2 8.1853 9.2390 as.factor(cp)3 as.factor(cp)4 10.2007 11.1853 as.factor(cp)5 as.factor(cp)6 12.2297 10.2209 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 3.8429 2.8203 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 1.7927 0.7725 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.2235 -2.2317 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -3.2230 -4.2143 > > > matplot(y,type="l") > matplot(matrix(fitted( lm(as.vector(y) ~ -1 + as.factor(cp) + + C(as.factor(pr),"contr.sum"))),ncol=6),type="l") > > > library(preprocessCore) > true.probes <- c(4,3,2,1,-1,-2,-3,-4) > > true.chips <- c(8,9,10,11,12,10) > > y <- outer(true.probes,true.chips,"+") + rnorm(48,0,0.25) > > y[8,4:6] <- c(11,12,10)+ 2.5 + rnorm(3,0,0.25) > y[5,4:6] <- c(11,12,10)+-2.5 + rnorm(3,0,0.25) > > > > ###.C("plmd_fit_R", as.double(y), as.integer(8), as.integer(6), > ### as.integer(2), as.integer(c(1,1,1,2,2,2) - 1), > ### double(6 +2*8), > ### double(48), > ### double(48)) > > ###matplot(matrix(.C("plmd_fit_R", as.double(y), as.integer(8), as.integer(6), > ### as.integer(2), as.integer(c(1,1,1,2,2,2) - 1), > ### double(6 +2*8), > ### double(48), > ### double(48))[[7]],ncol=6)) > ### > > > ##.Call("R_plmd_model",y,0,1.3345,as.integer(c(1,1,1,2,2,2) - 1),as.integer(2)) > rcModelPLM(y) $Estimates [1] 8.3210482 9.1843409 10.3755711 11.4694677 12.2901266 10.3142824 [7] 3.7777700 2.5699138 1.5181831 0.5345016 -2.0117129 -2.1022922 [13] -3.3827998 -0.9035635 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.0000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 [2,] 1.0000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 [3,] 1.0000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 [4,] 0.3683440 1.00000000 1.00000000 1.00000000 1.00000000 0.28695835 [5,] 0.1786517 0.14360418 0.36789068 0.16631808 0.19074172 0.27505423 [6,] 1.0000000 1.00000000 1.00000000 0.52154093 1.00000000 1.00000000 [7,] 1.0000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 [8,] 0.0578329 0.05474177 0.04895618 0.05938353 0.04990885 0.05237784 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.14621919 0.05073854 -0.00272904 0.06155768 -0.001093665 0.03774568 [2,] -0.16165572 0.09413542 -0.03914145 0.07172316 0.070593245 -0.03565466 [3,] 0.04596562 0.01155337 0.04441591 -0.05849736 -0.028596472 -0.01484107 [4,] 0.47559996 -0.09795111 -0.06762320 -0.04315458 -0.141633573 0.61046517 [5,] 0.98059807 1.21989414 0.47617562 -1.05331485 -0.918422603 -0.63689689 [6,] 0.00512964 -0.04570366 0.10798918 -0.33592448 0.130910668 -0.02312746 [7,] 0.08159016 -0.01277287 -0.04291017 0.14357442 -0.030180400 -0.13930114 [8,] -3.02907880 -3.20014455 -3.57833882 2.94998216 3.510032634 3.34457775 $StdErrors [1] 0.1774207 0.1709007 0.1670700 0.1755320 0.1702245 0.1768795 0.1666224 [8] 0.1666224 0.1666224 0.1824454 0.2982227 0.1714066 0.1666224 0.5742501 $Scale [1] 0.1302636 > rcModelPLMd(y,c(1,1,1,2,2,2)) $Estimates [1] 8.0952425 8.9228304 10.0508215 11.1433356 12.0296856 10.0471467 [7] 4.0738518 2.8690827 1.7958122 0.8045178 -0.8053245 -2.6514098 [13] -1.8367958 -3.1157449 -3.8421659 2.7081765 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.4885971 1.0000000 1.000000 1.0000000 1.0000000 1.0000000 [2,] 0.4500944 1.0000000 1.000000 1.0000000 1.0000000 1.0000000 [3,] 1.0000000 1.0000000 1.000000 1.0000000 1.0000000 1.0000000 [4,] 0.2452500 0.9940984 1.000000 1.0000000 0.6999000 0.1741156 [5,] 1.0000000 0.3846601 0.260944 1.0000000 1.0000000 0.3918358 [6,] 1.0000000 1.0000000 0.632532 0.3843346 0.8402954 1.0000000 [7,] 1.0000000 1.0000000 1.000000 0.5221246 1.0000000 0.7601143 [8,] 0.7819717 1.0000000 0.335862 0.3151777 0.6665770 1.0000000 $Residuals [,1] [,2] [,3] [,4] [,5] [1,] -0.216495274 0.0161672414 0.02593873 0.091607927 -0.03673452 [2,] -0.235018774 0.0564771452 -0.01356065 0.098686441 0.03186542 [3,] -0.005857745 -0.0045652061 0.09153639 -0.009994391 -0.04578461 [4,] 0.431389449 -0.1064568325 -0.01288986 0.012961247 -0.15120885 [5,] 0.000015387 0.2750162458 -0.40546322 -0.087485828 -0.01828468 [6,] -0.034561026 -0.0496895436 0.16724236 -0.275288807 0.12585523 [7,] 0.040341002 -0.0183172441 0.01478453 0.202651597 -0.03679432 [8,] 0.135329351 -0.0000316121 -0.31498682 -0.335625714 0.15873366 [,6] [1,] 8.799590e-03 [2,] -6.768772e-02 [3,] -2.533444e-02 [4,] 6.075847e-01 [5,] 2.699358e-01 [6,] -2.148813e-02 [7,] -1.392203e-01 [8,] -2.646293e-05 $StdErrors [1] 0.07290156 0.05624145 0.06264013 0.06420782 0.06264013 0.06268451 [7] 0.05818625 0.05818625 0.05263847 0.09139924 0.13121254 0.09139924 [13] 0.07296442 0.06400487 0.12274035 0.00000000 $WasSplit [1] 0 0 0 0 1 0 0 1 > > ###R_plmd_model(SEXP Y, SEXP PsiCode, SEXP PsiK, SEXP Groups, SEXP Ngroups) > > > > > > pr[seq(3,48,8)][1:3] <- 10 > > y[seq(3,48,8)][1:3] <- c(8,9,10) -3 + rnorm(3,0,0.1) > lm(as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr),"contr.sum")) Call: lm(formula = as.vector(y) ~ -1 + as.factor(cp) + C(as.factor(pr), "contr.sum")) Coefficients: as.factor(cp)1 as.factor(cp)2 8.118 8.976 as.factor(cp)3 as.factor(cp)4 9.983 10.823 as.factor(cp)5 as.factor(cp)6 11.751 9.844 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 4.188 2.980 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 2.036 1.067 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.590 -1.719 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -2.973 -3.905 C(as.factor(pr), "contr.sum")9 2.917 > > > proc.time() user system elapsed 1.92 0.18 2.09 |
preprocessCore.Rcheck/tests_i386/qnormtest.Rout R version 4.1.3 (2022-03-10) -- "One Push-Up" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: i386-w64-mingw32/i386 (32-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. 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. > library(preprocessCore) > > err.tol <- 10^-8 > > x <- matrix(c(100,15,200,250,110,16.5,220,275,120,18,240,300),ncol=3) > x [,1] [,2] [,3] [1,] 100 110.0 120 [2,] 15 16.5 18 [3,] 200 220.0 240 [4,] 250 275.0 300 > normalize.quantiles(x) [,1] [,2] [,3] [1,] 110.0 110.0 110.0 [2,] 16.5 16.5 16.5 [3,] 220.0 220.0 220.0 [4,] 275.0 275.0 275.0 > > x.norm.truth <- matrix(rep(c(110.0,16.5,220,275.0),3),ncol=3) > > if (all(abs(x.norm.truth - normalize.quantiles(x)) < err.tol) != TRUE){ + stop("Disagreement in normalize.quantiles(x)") + } > > normalize.quantiles.determine.target(x) [1] 16.5 110.0 220.0 275.0 > > x.norm.target.truth <- c(16.5,110.0,220.0,275.0) > > if (all(abs(x.norm.target.truth - normalize.quantiles.determine.target(x)) < err.tol) != TRUE){ + stop("Disagreement in normalize.quantiles.determine.target(x)") + } > > > y <- x > y[2,2] <- NA > y [,1] [,2] [,3] [1,] 100 110 120 [2,] 15 NA 18 [3,] 200 220 240 [4,] 250 275 300 > normalize.quantiles(y) [,1] [,2] [,3] [1,] 134.44444 47.66667 134.44444 [2,] 47.66667 NA 47.66667 [3,] 226.11111 180.27778 226.11111 [4,] 275.00000 275.00000 275.00000 > > y.norm.target.truth <- c(47.6666666666667,134.4444444444444,226.1111111111111,275.0000000000000) > > y.norm.truth <- matrix(c(134.4444444444444, 47.6666666666667, 134.4444444444444, + 47.6666666666667, NA, 47.6666666666667, + 226.1111111111111, 180.2777777777778, 226.1111111111111, + 275.0000000000000, 275.0000000000000, 275.0000000000000),byrow=TRUE,ncol=3) > > > if (all(abs(y.norm.truth - normalize.quantiles(y)) < err.tol,na.rm=TRUE) != TRUE){ + stop("Disagreement in normalize.quantiles(y)") + } > > > > if (all(abs(y.norm.target.truth - normalize.quantiles.determine.target(y)) < err.tol) != TRUE){ + stop("Disagreement in normalize.quantiles.determine.target(y)") + } > > > > if (all(abs(normalize.quantiles.use.target(y,y.norm.target.truth) - y.norm.truth) < err.tol,na.rm=TRUE) != TRUE){ + stop("Disagreement in normalize.quantiles.use.target(y)") + } > > > x <- matrix(c(100,15,200,250,110,16.5,220,275,120,18,240,300),ncol=3) > rownames(x) <- letters[1:4] > colnames(x) <- LETTERS[1:3] > y <- normalize.quantiles(x, keep.names = TRUE) > if(!all(colnames(x)==colnames(y))){ + stop("Disagreement between initial and final column names despite keep.names=TRUE") + } > if(!all(rownames(x)==rownames(y))){ + stop("Disagreement between initial and final row names despite keep.names=TRUE") + } > > proc.time() user system elapsed 0.28 0.03 0.29 |
preprocessCore.Rcheck/tests_x64/qnormtest.Rout R version 4.1.3 (2022-03-10) -- "One Push-Up" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (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. 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. > library(preprocessCore) > > err.tol <- 10^-8 > > x <- matrix(c(100,15,200,250,110,16.5,220,275,120,18,240,300),ncol=3) > x [,1] [,2] [,3] [1,] 100 110.0 120 [2,] 15 16.5 18 [3,] 200 220.0 240 [4,] 250 275.0 300 > normalize.quantiles(x) [,1] [,2] [,3] [1,] 110.0 110.0 110.0 [2,] 16.5 16.5 16.5 [3,] 220.0 220.0 220.0 [4,] 275.0 275.0 275.0 > > x.norm.truth <- matrix(rep(c(110.0,16.5,220,275.0),3),ncol=3) > > if (all(abs(x.norm.truth - normalize.quantiles(x)) < err.tol) != TRUE){ + stop("Disagreement in normalize.quantiles(x)") + } > > normalize.quantiles.determine.target(x) [1] 16.5 110.0 220.0 275.0 > > x.norm.target.truth <- c(16.5,110.0,220.0,275.0) > > if (all(abs(x.norm.target.truth - normalize.quantiles.determine.target(x)) < err.tol) != TRUE){ + stop("Disagreement in normalize.quantiles.determine.target(x)") + } > > > y <- x > y[2,2] <- NA > y [,1] [,2] [,3] [1,] 100 110 120 [2,] 15 NA 18 [3,] 200 220 240 [4,] 250 275 300 > normalize.quantiles(y) [,1] [,2] [,3] [1,] 134.44444 47.66667 134.44444 [2,] 47.66667 NA 47.66667 [3,] 226.11111 180.27778 226.11111 [4,] 275.00000 275.00000 275.00000 > > y.norm.target.truth <- c(47.6666666666667,134.4444444444444,226.1111111111111,275.0000000000000) > > y.norm.truth <- matrix(c(134.4444444444444, 47.6666666666667, 134.4444444444444, + 47.6666666666667, NA, 47.6666666666667, + 226.1111111111111, 180.2777777777778, 226.1111111111111, + 275.0000000000000, 275.0000000000000, 275.0000000000000),byrow=TRUE,ncol=3) > > > if (all(abs(y.norm.truth - normalize.quantiles(y)) < err.tol,na.rm=TRUE) != TRUE){ + stop("Disagreement in normalize.quantiles(y)") + } > > > > if (all(abs(y.norm.target.truth - normalize.quantiles.determine.target(y)) < err.tol) != TRUE){ + stop("Disagreement in normalize.quantiles.determine.target(y)") + } > > > > if (all(abs(normalize.quantiles.use.target(y,y.norm.target.truth) - y.norm.truth) < err.tol,na.rm=TRUE) != TRUE){ + stop("Disagreement in normalize.quantiles.use.target(y)") + } > > > x <- matrix(c(100,15,200,250,110,16.5,220,275,120,18,240,300),ncol=3) > rownames(x) <- letters[1:4] > colnames(x) <- LETTERS[1:3] > y <- normalize.quantiles(x, keep.names = TRUE) > if(!all(colnames(x)==colnames(y))){ + stop("Disagreement between initial and final column names despite keep.names=TRUE") + } > if(!all(rownames(x)==rownames(y))){ + stop("Disagreement between initial and final row names despite keep.names=TRUE") + } > > proc.time() user system elapsed 0.20 0.04 0.23 |
preprocessCore.Rcheck/examples_i386/preprocessCore-Ex.timings
|
preprocessCore.Rcheck/examples_x64/preprocessCore-Ex.timings
|