Back to Multiple platform build/check report for BioC 3.9 |
|
This page was generated on 2019-10-16 12:18:42 -0400 (Wed, 16 Oct 2019).
Package 1246/1741 | Hostname | OS / Arch | INSTALL | BUILD | CHECK | BUILD BIN | ||||||
preprocessCore 1.46.0 Ben Bolstad
| malbec2 | Linux (Ubuntu 18.04.2 LTS) / x86_64 | OK | OK | OK | |||||||
tokay2 | Windows Server 2012 R2 Standard / x64 | OK | OK | [ OK ] | OK | |||||||
celaya2 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | OK | OK |
Package: preprocessCore |
Version: 1.46.0 |
Command: C:\Users\biocbuild\bbs-3.9-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:preprocessCore.install-out.txt --library=C:\Users\biocbuild\bbs-3.9-bioc\R\library --no-vignettes --timings preprocessCore_1.46.0.tar.gz |
StartedAt: 2019-10-16 06:07:18 -0400 (Wed, 16 Oct 2019) |
EndedAt: 2019-10-16 06:07:57 -0400 (Wed, 16 Oct 2019) |
EllapsedTime: 38.4 seconds |
RetCode: 0 |
Status: OK |
CheckDir: preprocessCore.Rcheck |
Warnings: 0 |
############################################################################## ############################################################################## ### ### Running command: ### ### C:\Users\biocbuild\bbs-3.9-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:preprocessCore.install-out.txt --library=C:\Users\biocbuild\bbs-3.9-bioc\R\library --no-vignettes --timings preprocessCore_1.46.0.tar.gz ### ############################################################################## ############################################################################## * using log directory 'C:/Users/biocbuild/bbs-3.9-bioc/meat/preprocessCore.Rcheck' * using R version 3.6.1 (2019-07-05) * 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.46.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 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.9-bioc/R/library/preprocessCore/libs/i386/preprocessCore.dll': Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran) File 'C:/Users/biocbuild/bbs-3.9-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.9-bioc/meat/preprocessCore.Rcheck/00check.log' for details.
preprocessCore.Rcheck/00install.out
############################################################################## ############################################################################## ### ### Running command: ### ### C:\cygwin\bin\curl.exe -O https://malbec2.bioconductor.org/BBS/3.9/bioc/src/contrib/preprocessCore_1.46.0.tar.gz && rm -rf preprocessCore.buildbin-libdir && mkdir preprocessCore.buildbin-libdir && C:\Users\biocbuild\bbs-3.9-bioc\R\bin\R.exe CMD INSTALL --merge-multiarch --build --library=preprocessCore.buildbin-libdir preprocessCore_1.46.0.tar.gz && C:\Users\biocbuild\bbs-3.9-bioc\R\bin\R.exe CMD INSTALL preprocessCore_1.46.0.zip && rm preprocessCore_1.46.0.tar.gz preprocessCore_1.46.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 128k 100 128k 0 0 1466k 0 --:--:-- --:--:-- --:--:-- 1601k install for i386 * installing *source* package 'preprocessCore' ... ** using staged installation ********************************************** WARNING: this package has a configure script It probably needs manual configuration ********************************************** ** libs C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c R_colSummarize.c -o R_colSummarize.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c R_plmd_interfaces.c -o R_plmd_interfaces.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c R_plmr_interfaces.c -o R_plmr_interfaces.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c R_rlm_interfaces.c -o R_rlm_interfaces.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c R_subColSummarize.c -o R_subColSummarize.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c R_subrcModel_interfaces.c -o R_subrcModel_interfaces.o R_subrcModel_interfaces.c: In function 'R_sub_rcModelSummarize_medianpolish': R_subrcModel_interfaces.c:190:11: warning: unused variable 'se' [-Wunused-variable] double *se; ^ R_subrcModel_interfaces.c:189:11: warning: unused variable 'weights' [-Wunused-variable] double *weights; ^ R_subrcModel_interfaces.c:154:30: warning: unused variable 'buffer2' [-Wunused-variable] double *results, *buffer, *buffer2; ^ R_subrcModel_interfaces.c:154:21: warning: unused variable 'buffer' [-Wunused-variable] double *results, *buffer, *buffer2; ^ R_subrcModel_interfaces.c:154: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:510:10: warning: unused variable 'scale' [-Wunused-variable] double scale=-1.0; ^ R_subrcModel_interfaces.c:469:30: warning: unused variable 'buffer2' [-Wunused-variable] double *results, *buffer, *buffer2; ^ R_subrcModel_interfaces.c:469:21: warning: unused variable 'buffer' [-Wunused-variable] double *results, *buffer, *buffer2; ^ R_subrcModel_interfaces.c:469:11: warning: unused variable 'results' [-Wunused-variable] double *results, *buffer, *buffer2; ^ C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c avg.c -o avg.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c avg_log.c -o avg_log.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c biweight.c -o biweight.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c init_package.c -o init_package.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c lm.c -o lm.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c log_avg.c -o log_avg.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c log_median.c -o log_median.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c matrix_functions.c -o matrix_functions.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c median.c -o median.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c median_log.c -o median_log.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c medianpolish.c -o medianpolish.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c plmd.c -o plmd.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c plmr.c -o plmr.o 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){ ^ 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:279:13: warning: 'XTWX_R_inv' defined but not used [-Wunused-function] static void XTWX_R_inv(int *rows, int *cols, double *xtwx){ ^ C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c psi_fns.c -o psi_fns.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c qnorm.c -o qnorm.o qnorm.c: In function 'qnorm_c_determine_target_l': qnorm.c:1887:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na; ^ qnorm.c:1882: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:2481:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na; ^ qnorm.c:2476: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:2692: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:2791:11: warning: unused variable 'datvec' [-Wunused-variable] double *datvec; ^ qnorm.c:2790:11: warning: unused variable 'sample_percentiles' [-Wunused-variable] double *sample_percentiles; ^ qnorm.c: In function 'using_target_via_subset': qnorm.c:2940:11: warning: unused variable 'datvec' [-Wunused-variable] double *datvec; ^ qnorm.c:2939:11: warning: unused variable 'sample_percentiles' [-Wunused-variable] double *sample_percentiles; ^ qnorm.c:2935:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na = 0; ^ qnorm.c:2934:7: warning: unused variable 'targetnon_na' [-Wunused-variable] int targetnon_na = targetrows; ^ qnorm.c:2932:28: warning: unused variable 'target_ind_double_floor' [-Wunused-variable] double target_ind_double,target_ind_double_floor; ^ qnorm.c:2932:10: warning: unused variable 'target_ind_double' [-Wunused-variable] double target_ind_double,target_ind_double_floor; ^ qnorm.c:2931:10: warning: unused variable 'samplepercentile' [-Wunused-variable] double samplepercentile; ^ qnorm.c:2930:11: warning: unused variable 'ranks' [-Wunused-variable] double *ranks = (double *)Calloc((rows),double); ^ qnorm.c:2928:11: warning: unused variable 'row_mean' [-Wunused-variable] double *row_mean = target; ^ qnorm.c:2926:14: warning: unused variable 'dimat' [-Wunused-variable] dataitem **dimat; ^ qnorm.c:2924:18: warning: unused variable 'target_ind' [-Wunused-variable] size_t i,j,ind,target_ind; ^ qnorm.c:2924:14: warning: unused variable 'ind' [-Wunused-variable] size_t i,j,ind,target_ind; ^ qnorm.c:2924:12: warning: unused variable 'j' [-Wunused-variable] size_t i,j,ind,target_ind; ^ qnorm.c: In function 'R_qnorm_using_target': qnorm.c:2055:10: warning: 'target_rows' may be used uninitialized in this function [-Wmaybe-uninitialized] size_t target_rows, target_cols; ^ qnorm.c: In function 'R_qnorm_using_target_via_subset': qnorm.c:3205: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:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c rlm.c -o rlm.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -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:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c rlm_se.c -o rlm_se.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c rma_background4.c -o rma_background4.o rma_background4.c: In function 'R_rma_bg_correct': rma_background4.c:465:13: warning: 'PMcopy' may be used uninitialized in this function [-Wmaybe-uninitialized] SEXP dim1,PMcopy; ^ C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c rma_common.c -o rma_common.o C:/Rtools/mingw_32/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O3 -Wall -std=gnu99 -mtune=generic -c weightedkerneldensity.c -o weightedkerneldensity.o C:/Rtools/mingw_32/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.9-B/R/bin/i386 -lRlapack -LC:/Users/BIOCBU~1/BBS-3~1.9-B/R/bin/i386 -lRblas -lgfortran -lm -lquadmath -LC:/extsoft/lib/i386 -LC:/extsoft/lib -LC:/Users/BIOCBU~1/BBS-3~1.9-B/R/bin/i386 -lR installing to C:/Users/biocbuild/bbs-3.9-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:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c R_colSummarize.c -o R_colSummarize.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c R_plmd_interfaces.c -o R_plmd_interfaces.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c R_plmr_interfaces.c -o R_plmr_interfaces.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c R_rlm_interfaces.c -o R_rlm_interfaces.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c R_subColSummarize.c -o R_subColSummarize.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c R_subrcModel_interfaces.c -o R_subrcModel_interfaces.o R_subrcModel_interfaces.c: In function 'R_sub_rcModelSummarize_medianpolish': R_subrcModel_interfaces.c:190:11: warning: unused variable 'se' [-Wunused-variable] double *se; ^ R_subrcModel_interfaces.c:189:11: warning: unused variable 'weights' [-Wunused-variable] double *weights; ^ R_subrcModel_interfaces.c:154:30: warning: unused variable 'buffer2' [-Wunused-variable] double *results, *buffer, *buffer2; ^ R_subrcModel_interfaces.c:154:21: warning: unused variable 'buffer' [-Wunused-variable] double *results, *buffer, *buffer2; ^ R_subrcModel_interfaces.c:154: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:510:10: warning: unused variable 'scale' [-Wunused-variable] double scale=-1.0; ^ R_subrcModel_interfaces.c:469:30: warning: unused variable 'buffer2' [-Wunused-variable] double *results, *buffer, *buffer2; ^ R_subrcModel_interfaces.c:469:21: warning: unused variable 'buffer' [-Wunused-variable] double *results, *buffer, *buffer2; ^ R_subrcModel_interfaces.c:469:11: warning: unused variable 'results' [-Wunused-variable] double *results, *buffer, *buffer2; ^ C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c avg.c -o avg.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c avg_log.c -o avg_log.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c biweight.c -o biweight.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c init_package.c -o init_package.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c lm.c -o lm.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c log_avg.c -o log_avg.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c log_median.c -o log_median.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c matrix_functions.c -o matrix_functions.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c median.c -o median.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c median_log.c -o median_log.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c medianpolish.c -o medianpolish.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c plmd.c -o plmd.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c plmr.c -o plmr.o 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){ ^ 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:279:13: warning: 'XTWX_R_inv' defined but not used [-Wunused-function] static void XTWX_R_inv(int *rows, int *cols, double *xtwx){ ^ C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c psi_fns.c -o psi_fns.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c qnorm.c -o qnorm.o qnorm.c: In function 'qnorm_c_determine_target_l': qnorm.c:1887:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na; ^ qnorm.c:1882: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:2481:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na; ^ qnorm.c:2476: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:2692: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:2791:11: warning: unused variable 'datvec' [-Wunused-variable] double *datvec; ^ qnorm.c:2790:11: warning: unused variable 'sample_percentiles' [-Wunused-variable] double *sample_percentiles; ^ qnorm.c: In function 'using_target_via_subset': qnorm.c:2940:11: warning: unused variable 'datvec' [-Wunused-variable] double *datvec; ^ qnorm.c:2939:11: warning: unused variable 'sample_percentiles' [-Wunused-variable] double *sample_percentiles; ^ qnorm.c:2935:7: warning: unused variable 'non_na' [-Wunused-variable] int non_na = 0; ^ qnorm.c:2934:7: warning: unused variable 'targetnon_na' [-Wunused-variable] int targetnon_na = targetrows; ^ qnorm.c:2932:28: warning: unused variable 'target_ind_double_floor' [-Wunused-variable] double target_ind_double,target_ind_double_floor; ^ qnorm.c:2932:10: warning: unused variable 'target_ind_double' [-Wunused-variable] double target_ind_double,target_ind_double_floor; ^ qnorm.c:2931:10: warning: unused variable 'samplepercentile' [-Wunused-variable] double samplepercentile; ^ qnorm.c:2930:11: warning: unused variable 'ranks' [-Wunused-variable] double *ranks = (double *)Calloc((rows),double); ^ qnorm.c:2928:11: warning: unused variable 'row_mean' [-Wunused-variable] double *row_mean = target; ^ qnorm.c:2926:14: warning: unused variable 'dimat' [-Wunused-variable] dataitem **dimat; ^ qnorm.c:2924:18: warning: unused variable 'target_ind' [-Wunused-variable] size_t i,j,ind,target_ind; ^ qnorm.c:2924:14: warning: unused variable 'ind' [-Wunused-variable] size_t i,j,ind,target_ind; ^ qnorm.c:2924:12: warning: unused variable 'j' [-Wunused-variable] size_t i,j,ind,target_ind; ^ qnorm.c: In function 'R_qnorm_using_target': qnorm.c:2087: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:3205: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:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c rlm.c -o rlm.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -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:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c rlm_se.c -o rlm_se.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c rma_background4.c -o rma_background4.o rma_background4.c: In function 'R_rma_bg_correct': rma_background4.c:465:13: warning: 'PMcopy' may be used uninitialized in this function [-Wmaybe-uninitialized] SEXP dim1,PMcopy; ^ C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c rma_common.c -o rma_common.o C:/Rtools/mingw_64/bin/gcc -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/extsoft/include" -O2 -Wall -std=gnu99 -mtune=generic -c weightedkerneldensity.c -o weightedkerneldensity.o C:/Rtools/mingw_64/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.9-B/R/bin/x64 -lRlapack -LC:/Users/BIOCBU~1/BBS-3~1.9-B/R/bin/x64 -lRblas -lgfortran -lm -lquadmath -LC:/extsoft/lib/x64 -LC:/extsoft/lib -LC:/Users/BIOCBU~1/BBS-3~1.9-B/R/bin/x64 -lR installing to C:/Users/biocbuild/bbs-3.9-bioc/meat/preprocessCore.buildbin-libdir/preprocessCore/libs/x64 ** testing if installed package can be loaded * MD5 sums packaged installation of 'preprocessCore' as preprocessCore_1.46.0.zip * DONE (preprocessCore) * installing to library 'C:/Users/biocbuild/bbs-3.9-bioc/R/library' package 'preprocessCore' successfully unpacked and MD5 sums checked
preprocessCore.Rcheck/tests_i386/PLMdtest.Rout R version 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 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.008405 0.980701 > > > > 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] 49.95226 > sum((resid(lm(values ~ as.factor(group.labels)))/sc)^2)/2 [1] 49.95207 > > > 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.2338 9.2416 as.factor(cp)3 as.factor(cp)4 10.2573 11.1291 as.factor(cp)5 as.factor(cp)6 12.1920 10.2143 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 3.7380 2.7974 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 1.8349 0.8193 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.3113 -2.2358 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -3.1449 -4.2183 > > > 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.0268317 9.4438547 10.2490575 11.4395595 12.5281834 10.2965579 [7] 3.7668810 2.6232597 1.7125115 0.6398711 -2.1355713 -2.1807112 [13] -3.3170855 -1.1091553 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.0000000 0.6912226 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.6032135 0.8012664 0.3177739 0.3749444 0.5367119 0.7744144 [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.1394976 0.1321963 0.1169211 0.1451103 0.1276739 0.1161697 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.16114658 -0.57810825 0.33220916 -0.18567224 -0.1842352 0.27615320 [2,] -0.24341825 -0.04501734 0.03958245 0.15224641 -0.1563993 0.25300599 [3,] -0.07334055 0.13307387 -0.20755308 0.05453311 0.3538063 -0.26051965 [4,] 0.06161067 0.19278990 -0.01033496 0.11024895 -0.1864060 -0.16790856 [5,] 0.66210525 0.49825293 1.25679248 -1.06507376 -0.7440398 -0.51564323 [6,] 0.21047212 0.14428644 -0.32842889 -0.30653336 0.3639908 -0.08378714 [7,] -0.11650538 -0.02538081 0.17450670 0.17515454 -0.1907873 -0.01698778 [8,] -2.86281721 -3.02114170 -3.41561314 2.75215529 3.1280125 3.43777680 $StdErrors [1] 0.2255888 0.2273495 0.2320525 0.2296207 0.2272779 0.2237829 0.2320327 [8] 0.2271363 0.2271363 0.2271363 0.2861633 0.2271363 0.2271363 0.5598132 $Scale [1] 0.2967702 > rcModelPLMd(y,c(1,1,1,2,2,2)) $Estimates [1] 7.7184254 9.0938216 9.9349514 11.0354829 12.2112171 10.0468600 [7] 4.0889249 2.9471407 2.0363926 0.9637522 -1.0348412 -2.5869100 [13] -1.8568302 -2.9932045 -3.8848309 2.3204064 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1 0.6955497 1.0000000 1 1 1 [2,] 1 1.0000000 1.0000000 1 1 1 [3,] 1 1.0000000 1.0000000 1 1 1 [4,] 1 1.0000000 1.0000000 1 1 1 [5,] 1 1.0000000 0.8138843 1 1 1 [6,] 1 1.0000000 1.0000000 1 1 1 [7,] 1 1.0000000 1.0000000 1 1 1 [8,] 1 1.0000000 1.0000000 1 1 1 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.14750899 -0.550119061 0.32427135 -0.1036395 -0.18931284 0.2038071 [2,] -0.25889297 -0.018865287 0.02980751 0.2324420 -0.16331404 0.1788228 [3,] -0.08881528 0.159225923 -0.21732802 0.1347287 0.34689152 -0.3347029 [4,] 0.04613594 0.218941953 -0.02010991 0.1904446 -0.19332077 -0.2420918 [5,] -0.13021858 -0.252444113 0.47016843 -0.2096584 0.02426517 0.1853933 [6,] 0.19499740 0.170438498 -0.33820384 -0.2263377 0.35707605 -0.1579704 [7,] -0.13198011 0.000771247 0.16473175 0.2553502 -0.19770205 -0.0911710 [8,] 0.22126461 0.104566914 -0.32583153 -0.2733298 0.01541696 0.2579129 $StdErrors [1] 0.09767611 0.10565893 0.10577455 0.09840751 0.09840751 0.09840751 [7] 0.11631914 0.10612065 0.10612065 0.10612065 0.18410137 0.15060193 [13] 0.10612065 0.10612065 0.15112045 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 7.787 9.062 as.factor(cp)3 as.factor(cp)4 10.013 10.803 as.factor(cp)5 as.factor(cp)6 11.979 9.815 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 4.158 3.044 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 2.318 1.061 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.699 -1.760 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -2.896 -3.923 C(as.factor(pr), "contr.sum")9 2.553 > > > proc.time() user system elapsed 2.53 0.15 2.90 |
preprocessCore.Rcheck/tests_x64/PLMdtest.Rout R version 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 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.04288 0.92797 > > > > 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] 59.00982 > sum((resid(lm(values ~ as.factor(group.labels)))/sc)^2)/2 [1] 58.95471 > > > 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.2333 9.2181 as.factor(cp)3 as.factor(cp)4 10.1889 11.1708 as.factor(cp)5 as.factor(cp)6 12.2174 10.2286 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 3.7597 2.7792 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 1.7747 0.8011 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.2119 -2.1858 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -3.1979 -4.2072 > > > 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.3951545 9.3965706 10.4124994 11.3203543 12.3167099 10.2351792 [7] 3.8257234 2.7840496 1.6761926 0.7208886 -2.1489428 -2.2975873 [13] -3.4815371 -1.0787870 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.0000000 1.00000000 1.0000000 1.0000000 1.0000000 1.0000000 [2,] 0.6721647 1.00000000 1.0000000 1.0000000 1.0000000 1.0000000 [3,] 1.0000000 1.00000000 0.8715665 1.0000000 1.0000000 1.0000000 [4,] 1.0000000 1.00000000 1.0000000 1.0000000 1.0000000 1.0000000 [5,] 0.3927129 0.77069956 0.5236208 0.5704088 0.7722434 0.3494206 [6,] 0.8078829 1.00000000 1.0000000 1.0000000 1.0000000 1.0000000 [7,] 1.0000000 1.00000000 1.0000000 1.0000000 1.0000000 1.0000000 [8,] 0.1104405 0.09612513 0.1132013 0.1089744 0.1056615 0.1038375 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.16978946 0.14581638 -0.25221067 0.14588520 0.03320400 -0.24248438 [2,] 0.52904990 -0.06967532 -0.09384618 -0.17955155 0.12418876 -0.13672439 [3,] -0.13354944 -0.17707413 0.40830694 0.04315498 -0.28973559 0.20133752 [4,] 0.01004960 -0.20086174 0.02564869 -0.14475834 0.26271097 0.04721082 [5,] 0.90557844 0.46149326 0.67937417 -0.62355258 -0.46058124 -1.01791003 [6,] -0.44047322 0.17947842 -0.09327769 0.26503924 -0.06885904 0.07346987 [7,] -0.04599079 0.12232087 0.05774883 -0.12976639 -0.06150505 0.05719253 [8,] -3.22064069 -3.70014727 -3.14187261 3.26385469 3.36619217 3.42531947 $StdErrors [1] 0.2297712 0.2159860 0.2209396 0.2185142 0.2155179 0.2227586 0.2190167 [8] 0.2237356 0.2208086 0.2190167 0.2751934 0.2216583 0.2190167 0.5866445 $Scale [1] 0.2643088 > rcModelPLMd(y,c(1,1,1,2,2,2)) $Estimates [1] 8.133376 9.003651 10.104171 10.993883 12.030595 9.884264 4.147290 [8] 3.098395 1.992688 1.041976 -1.145785 -2.516011 -1.945987 -3.160449 [15] -4.106286 2.594169 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.0000000 1.0000000 0.9891691 1 1.0000000 1.0000000 [2,] 0.5510921 1.0000000 1.0000000 1 1.0000000 1.0000000 [3,] 1.0000000 1.0000000 0.6562902 1 0.8202582 1.0000000 [4,] 1.0000000 1.0000000 1.0000000 1 1.0000000 1.0000000 [5,] 1.0000000 1.0000000 1.0000000 1 1.0000000 0.8755053 [6,] 0.4951889 1.0000000 1.0000000 1 1.0000000 1.0000000 [7,] 1.0000000 1.0000000 1.0000000 1 1.0000000 1.0000000 [8,] 1.0000000 0.9387401 1.0000000 1 1.0000000 1.0000000 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.11000080 0.217168803 -0.26544924 0.15078902 -0.002248182 -0.21313624 [2,] 0.47648305 0.008898907 -0.09986295 -0.16742592 0.095958388 -0.10015445 [3,] -0.18826669 -0.100650307 0.40013977 0.05313021 -0.320116366 0.23575706 [4,] -0.04925989 -0.129030146 0.01288929 -0.13937535 0.227737964 0.07703813 [5,] 0.16419943 -0.148744672 -0.01545475 0.06998616 0.192601499 -0.29992697 [6,] -0.53029547 0.220797249 -0.13654986 0.23990946 -0.134344814 0.07278441 [7,] -0.10530028 0.194152461 0.04498943 -0.12438340 -0.096478060 0.08701984 [8,] 0.06863706 -0.279728440 0.19395523 -0.08263019 -0.020648709 0.10327890 $StdErrors [1] 0.09470861 0.08652752 0.09451268 0.08021209 0.08677734 0.08672904 [7] 0.09528679 0.09538937 0.10649361 0.08705693 0.12476822 0.14998041 [13] 0.09538937 0.08705693 0.15314786 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.140 9.004 as.factor(cp)3 as.factor(cp)4 10.050 10.752 as.factor(cp)5 as.factor(cp)6 11.781 9.638 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 4.278 3.265 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 2.228 1.173 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.706 -1.860 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -3.030 -4.096 C(as.factor(pr), "contr.sum")9 2.840 > > > proc.time() user system elapsed 1.81 0.04 2.48 |
preprocessCore.Rcheck/tests_i386/qnormtest.Rout R version 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 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)") + } > > > > > proc.time() user system elapsed 0.28 0.04 0.31 |
preprocessCore.Rcheck/tests_x64/qnormtest.Rout R version 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 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)") + } > > > > > proc.time() user system elapsed 0.21 0.03 0.23 |
preprocessCore.Rcheck/examples_i386/preprocessCore-Ex.timings
|
preprocessCore.Rcheck/examples_x64/preprocessCore-Ex.timings
|