Back to Multiple platform build/check report for BioC 3.7 |
|
This page was generated on 2018-10-17 08:31:48 -0400 (Wed, 17 Oct 2018).
Package 1124/1561 | Hostname | OS / Arch | INSTALL | BUILD | CHECK | BUILD BIN | ||||||
preprocessCore 1.42.0 Ben Bolstad
| malbec2 | Linux (Ubuntu 16.04.1 LTS) / x86_64 | OK | OK | OK | |||||||
tokay2 | Windows Server 2012 R2 Standard / x64 | OK | OK | [ OK ] | OK | |||||||
merida2 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | OK | OK |
Package: preprocessCore |
Version: 1.42.0 |
Command: C:\Users\biocbuild\bbs-3.7-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:preprocessCore.install-out.txt --library=C:\Users\biocbuild\bbs-3.7-bioc\R\library --no-vignettes --timings preprocessCore_1.42.0.tar.gz |
StartedAt: 2018-10-17 04:03:59 -0400 (Wed, 17 Oct 2018) |
EndedAt: 2018-10-17 04:04:33 -0400 (Wed, 17 Oct 2018) |
EllapsedTime: 33.6 seconds |
RetCode: 0 |
Status: OK |
CheckDir: preprocessCore.Rcheck |
Warnings: 0 |
############################################################################## ############################################################################## ### ### Running command: ### ### C:\Users\biocbuild\bbs-3.7-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:preprocessCore.install-out.txt --library=C:\Users\biocbuild\bbs-3.7-bioc\R\library --no-vignettes --timings preprocessCore_1.42.0.tar.gz ### ############################################################################## ############################################################################## * using log directory 'C:/Users/biocbuild/bbs-3.7-bioc/meat/preprocessCore.Rcheck' * using R version 3.5.1 Patched (2018-07-24 r75005) * 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.42.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 ... OK * 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.7-bioc/R/library/preprocessCore/libs/i386/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: 1 NOTE See 'C:/Users/biocbuild/bbs-3.7-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.7/bioc/src/contrib/preprocessCore_1.42.0.tar.gz && rm -rf preprocessCore.buildbin-libdir && mkdir preprocessCore.buildbin-libdir && C:\Users\biocbuild\bbs-3.7-bioc\R\bin\R.exe CMD INSTALL --merge-multiarch --build --library=preprocessCore.buildbin-libdir preprocessCore_1.42.0.tar.gz && C:\Users\biocbuild\bbs-3.7-bioc\R\bin\R.exe CMD INSTALL preprocessCore_1.42.0.zip && rm preprocessCore_1.42.0.tar.gz preprocessCore_1.42.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 2305k 0 --:--:-- --:--:-- --:--:-- 2668k install for i386 * installing *source* package 'preprocessCore' ... ********************************************** 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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-B/R/bin/i386 -lRlapack -LC:/Users/BIOCBU˜1/BBS-3˜1.7-B/R/bin/i386 -lRblas -lgfortran -lm -lquadmath -LC:/extsoft/lib/i386 -LC:/extsoft/lib -LC:/Users/BIOCBU˜1/BBS-3˜1.7-B/R/bin/i386 -lR installing to C:/Users/biocbuild/bbs-3.7-bioc/meat/preprocessCore.buildbin-libdir/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 In R CMD INSTALL 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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-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.7-B/R/bin/x64 -lRlapack -LC:/Users/BIOCBU˜1/BBS-3˜1.7-B/R/bin/x64 -lRblas -lgfortran -lm -lquadmath -LC:/extsoft/lib/x64 -LC:/extsoft/lib -LC:/Users/BIOCBU˜1/BBS-3˜1.7-B/R/bin/x64 -lR installing to C:/Users/biocbuild/bbs-3.7-bioc/meat/preprocessCore.buildbin-libdir/preprocessCore/libs/x64 ** testing if installed package can be loaded * MD5 sums packaged installation of 'preprocessCore' as preprocessCore_1.42.0.zip * DONE (preprocessCore) In R CMD INSTALL In R CMD INSTALL * installing to library 'C:/Users/biocbuild/bbs-3.7-bioc/R/library' package 'preprocessCore' successfully unpacked and MD5 sums checked In R CMD INSTALL
preprocessCore.Rcheck/tests_i386/PLMdtest.Rout R version 3.5.1 Patched (2018-07-24 r75005) -- "Feather Spray" Copyright (C) 2018 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.005337 0.967362 > > > > 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] 60.88557 > sum((resid(lm(values ˜ as.factor(group.labels)))/sc)^2)/2 [1] 60.76295 > > > 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.1941 9.2057 as.factor(cp)3 as.factor(cp)4 10.2221 11.1833 as.factor(cp)5 as.factor(cp)6 12.1980 10.1807 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 3.7477 2.7836 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 1.7266 0.7536 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.2183 -2.1199 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -3.2234 -4.2207 > > > 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.2068488 9.2706497 10.3907047 11.2261676 12.3249804 10.4066809 [7] 3.7763537 2.7450597 1.8347266 0.7373912 -2.1015870 -2.3519321 [13] -3.4097871 -1.2302249 $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.5940469 0.3783773 0.9228783 0.6371519 0.5234511 0.6315253 [6,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [7,] 1.0000000 0.9090940 1.0000000 0.7545235 1.0000000 1.0000000 [8,] 0.1416815 0.1373801 0.1316122 0.1401849 0.1313531 0.1391956 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.07996142 -0.1044750 0.20012776 -0.34024639 0.14191790 0.18263713 [2,] -0.01568751 0.4123616 -0.43578680 0.08137336 -0.11472666 0.07246603 [3,] 0.25035506 0.1151579 -0.05887605 -0.26485748 -0.25756151 0.21578208 [4,] 0.21104700 -0.2261128 0.19746933 0.06107912 -0.04896239 -0.19452025 [5,] 0.74172017 1.1645497 0.47742606 -0.69147320 -0.84180306 -0.69774824 [6,] -0.18344641 0.2435490 -0.20455568 0.02178536 0.15541455 -0.03274683 [7,] -0.18228882 -0.4845394 0.30164983 0.58420531 0.12393363 -0.24359943 [8,] -3.11003420 -3.2073647 -3.34797634 3.14329642 3.35452483 3.16552342 $StdErrors [1] 0.2402992 0.2462806 0.2352705 0.2435878 0.2420965 0.2397240 0.2414236 [8] 0.2414236 0.2414236 0.2414236 0.2942692 0.2414236 0.2469374 0.5815966 $Scale [1] 0.3275722 > rcModelPLMd(y,c(1,1,1,2,2,2)) $Estimates [1] 7.8883982 9.0162292 10.0160004 10.8728368 11.9981574 10.0742399 [7] 4.1035464 3.0836635 2.1614216 1.0640862 -0.9911632 -2.5077303 [13] -2.0252371 -3.0808505 -4.1361582 2.3284216 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1 1.0000000 1.0000000 0.9904941 1 1 [2,] 1 0.9479974 0.7785302 1.0000000 1 1 [3,] 1 1.0000000 1.0000000 1.0000000 1 1 [4,] 1 1.0000000 1.0000000 1.0000000 1 1 [5,] 1 1.0000000 1.0000000 1.0000000 1 1 [6,] 1 1.0000000 1.0000000 1.0000000 1 1 [7,] 1 0.5566016 0.8954491 0.5112161 1 1 [8,] 1 1.0000000 1.0000000 1.0000000 1 1 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.08870351 -0.17724714 0.24763945 -0.31410826 0.14154821 0.18788536 [2,] -0.03584066 0.32817833 -0.39968618 0.09610043 -0.12650741 0.06630321 [3,] 0.24211062 0.04288338 -0.01086672 -0.23822170 -0.25743354 0.22152796 [4,] 0.20280256 -0.29838734 0.24547866 0.08771491 -0.04883443 -0.18877437 [5,] -0.05025305 0.30854644 -0.25829339 0.06800087 -0.10883681 0.04083594 [6,] -0.19169085 0.17127449 -0.15654635 0.04842114 0.15554251 -0.02700095 [7,] -0.19277474 -0.55905541 0.34741767 0.60859961 0.12182011 -0.24009503 [8,] 0.11434964 -0.04701091 -0.06733873 -0.06201923 0.12270136 -0.06068213 $StdErrors [1] 0.09079601 0.10852945 0.10852945 0.10775371 0.09100740 0.09100740 [7] 0.10835801 0.12084578 0.09897989 0.09897989 0.14312771 0.14096329 [13] 0.09897989 0.13807880 0.14312771 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.845 8.961 as.factor(cp)3 as.factor(cp)4 9.981 10.663 as.factor(cp)5 as.factor(cp)6 11.751 9.827 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 4.243 3.211 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 2.305 1.204 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.610 -1.886 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -2.927 -4.092 C(as.factor(pr), "contr.sum")9 2.563 > > > proc.time() user system elapsed 2.43 0.10 2.53 |
preprocessCore.Rcheck/tests_x64/PLMdtest.Rout R version 3.5.1 Patched (2018-07-24 r75005) -- "Feather Spray" Copyright (C) 2018 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.01346 0.99656 > > > > 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] 51.20773 > sum((resid(lm(values ˜ as.factor(group.labels)))/sc)^2)/2 [1] 49.87923 > > > 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.2024 9.2530 as.factor(cp)3 as.factor(cp)4 10.2300 11.2175 as.factor(cp)5 as.factor(cp)6 12.2206 10.1683 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 3.8304 2.7396 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 1.7338 0.7342 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.2151 -2.1837 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -3.2475 -4.2786 > > > 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.1710842 9.3012862 10.2348009 11.2082450 12.3452110 10.2891995 [7] 3.6552367 2.6624846 1.6044338 0.8363598 -2.0628284 -2.3454565 [13] -3.1935811 -1.1566490 $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 0.5926746 1.0000000 1.0000000 [4,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [5,] 0.3836175 0.4393519 0.4664903 0.4498210 0.3694414 0.4736268 [6,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 0.9623461 [7,] 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 1.0000000 [8,] 0.1086423 0.1152141 0.1129344 0.1061725 0.1248524 0.1071970 $Residuals [,1] [,2] [,3] [,4] [,5] [1,] -0.282853703 0.087402709 0.14846099 0.003069119 0.101026400 [2,] 0.352122886 -0.004526689 0.04218388 -0.129028710 0.006565554 [3,] 0.079768833 -0.315660301 -0.06684545 0.595362379 0.183760022 [4,] -0.070399157 0.310551839 -0.18675666 -0.103684571 -0.119808826 [5,] 0.919639421 0.803054639 0.75633790 -0.784295859 -0.954974964 [6,] 0.001549042 0.028219633 0.08065778 -0.186816628 -0.276324267 [7,] -0.080156006 -0.105998502 -0.01771252 0.063577678 0.104771313 [8,] -3.247554858 -3.062231937 -3.12404741 3.323081900 2.825873214 [,6] [1,] -0.05710552 [2,] -0.26731692 [3,] -0.23387924 [4,] 0.17009737 [5,] -0.74496965 [6,] 0.36651517 [7,] 0.03551803 [8,] 3.29122328 $StdErrors [1] 0.2187451 0.2173581 0.2169497 0.2238852 0.2182877 0.2176018 0.2162861 [8] 0.2162861 0.2223308 0.2162861 0.3038901 0.2167933 0.2162861 0.5639789 $Scale [1] 0.2623109 > rcModelPLMd(y,c(1,1,1,2,2,2)) $Estimates [1] 7.8442157 8.9958158 9.9129738 10.8936354 11.9854451 9.9979530 [7] 3.9938719 2.9667011 1.9352969 1.1336304 -0.9184291 -2.5690345 [13] -2.0473545 -2.8736165 -3.9832051 2.3621393 $Weights [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.6197705 1.0000000 1 1.0000000 1.0000000 1.0000000 [2,] 0.4871799 1.0000000 1 1.0000000 1.0000000 0.6514169 [3,] 1.0000000 0.5353068 1 0.3153145 0.8587798 0.6674936 [4,] 1.0000000 0.5728204 1 1.0000000 1.0000000 1.0000000 [5,] 1.0000000 1.0000000 1 1.0000000 1.0000000 1.0000000 [6,] 1.0000000 1.0000000 1 1.0000000 0.8505246 0.5076928 [7,] 1.0000000 1.0000000 1 1.0000000 1.0000000 1.0000000 [8,] 1.0000000 1.0000000 1 1.0000000 0.5480570 1.0000000 $Residuals [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.29462048 0.054237879 0.13165287 -0.02095656 0.12215708 -0.104494185 [2,] 0.37477480 -0.003272826 0.05979445 -0.11863570 0.06211492 -0.280286892 [3,] 0.07577418 -0.341053006 -0.07588144 0.57910883 0.21266283 -0.273495785 [4,] -0.04080134 0.318751609 -0.16220018 -0.08634565 -0.05731355 0.164073305 [5,] 0.10210856 -0.035874268 -0.06623430 0.03651984 -0.08900290 0.052483059 [6,] 0.03031548 0.035588019 0.10438288 -0.17030909 -0.21466037 0.359659720 [7,] -0.07325222 -0.120492766 -0.01585007 0.05822257 0.14457256 0.006799931 [8,] -0.09413033 0.069794545 0.02433578 0.11890316 -0.33314917 0.063681556 $StdErrors [1] 0.07477862 0.07407505 0.06266906 0.06838038 0.08231799 0.08379223 [7] 0.07554400 0.08372708 0.11804937 0.07501043 0.09730345 0.10031932 [13] 0.08310549 0.06845464 0.09730345 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.891 9.061 as.factor(cp)3 as.factor(cp)4 9.964 10.683 as.factor(cp)5 as.factor(cp)6 11.706 9.736 C(as.factor(pr), "contr.sum")1 C(as.factor(pr), "contr.sum")2 4.073 3.080 C(as.factor(pr), "contr.sum")3 C(as.factor(pr), "contr.sum")4 2.358 1.254 C(as.factor(pr), "contr.sum")5 C(as.factor(pr), "contr.sum")6 -1.646 -1.925 C(as.factor(pr), "contr.sum")7 C(as.factor(pr), "contr.sum")8 -2.776 -4.038 C(as.factor(pr), "contr.sum")9 2.562 > > > proc.time() user system elapsed 2.35 0.07 2.42 |
preprocessCore.Rcheck/tests_i386/qnormtest.Rout R version 3.5.1 Patched (2018-07-24 r75005) -- "Feather Spray" Copyright (C) 2018 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.25 0.06 0.28 |
preprocessCore.Rcheck/tests_x64/qnormtest.Rout R version 3.5.1 Patched (2018-07-24 r75005) -- "Feather Spray" Copyright (C) 2018 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.28 0.03 0.29 |
preprocessCore.Rcheck/examples_i386/preprocessCore-Ex.timings
|
preprocessCore.Rcheck/examples_x64/preprocessCore-Ex.timings
|