CRAN Package Check Results for Package WLreg

Last updated on 2026-10-24 12:51:53 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.0.1 7.57 61.13 68.70 OK
r-devel-linux-x86_64-debian-gcc 1.0.0.1 6.07 45.98 52.05 ERROR
r-devel-linux-x86_64-fedora-clang 1.0.0.1 46.27 OK
r-devel-linux-x86_64-fedora-gcc 1.0.0.1 45.93 OK
r-devel-windows-x86_64 1.0.0.1 12.00 145.00 157.00 OK
r-patched-linux-x86_64 1.0.0.1 8.01 52.14 60.15 OK
r-release-linux-x86_64 1.0.0.1 7.74 52.98 60.72 OK
r-release-macos-arm64 1.0.0.1 3.00 16.00 19.00 OK
r-release-macos-x86_64 1.0.0.1 7.00 69.00 76.00 OK
r-release-windows-x86_64 1.0.0.1 11.00 78.00 89.00 OK
r-oldrel-macos-arm64 1.0.0.1 OK
r-oldrel-macos-x86_64 1.0.0.1 6.00 65.00 71.00 OK
r-oldrel-windows-x86_64 1.0.0.1 14.00 87.00 101.00 OK

Check Details

Version: 1.0.0.1
Check: examples
Result: ERROR Running examples in ‘WLreg-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: winreg > ### Title: Double Cox regression for win product > ### Aliases: winreg > ### Keywords: win ratio win loss statistics win product Cox regression Win > ### loss regression > > ### ** Examples > > ###Generate data > n<-300 > rho<-0.5 > b2<-c(1.0,-1.0) > b1<-c(0.5,-0.9) > bc<-c(1.0,0.5) > lambda10<-0.1;lambda20<-0.08;lambdac0<-0.09 > lam1<-rep(0,n);lam2<-rep(0,n);lamc<-rep(0,n) > z1<-rep(0,n) > z1[1:(n/2)]<-1 > z2<-rnorm(n) > z<-cbind(z1,z2) > > lam1<-lam2<-lamc<-rep(0,n) > for (i in 1:n){ + lam1[i]<-lambda10*exp(-sum(z[i,]*b1)) + lam2[i]<-lambda20*exp(-sum(z[i,]*b2)) + lamc[i]<-lambdac0*exp(-sum(z[i,]*bc)) + } > tem<-matrix(0,ncol=3,nrow=n) > > y2y<-matrix(0,nrow=n,ncol=3) > y2y[,1]<-rnorm(n);y2y[,3]<-rnorm(n) > y2y[,2]<-rho*y2y[,1]+sqrt(1-rho^2)*y2y[,3] > tem[,1]<--log(1-pnorm(y2y[,1]))/lam1 > tem[,2]<--log(1-pnorm(y2y[,2]))/lam2 > tem[,3]<--log(1-runif(n))/lamc > > y1<-apply(tem,1,min) > y2<-apply(tem[,2:3],1,min) > d1<-as.numeric(tem[,1]<=y1) > d2<-as.numeric(tem[,2]<=y2) > > y<-cbind(y1,y2,d1,d2) > z<-as.matrix(z) > aa<-winreg(y1,y2,d1,d2,z) Error in a$specials[[i]] : subscript out of bounds Calls: winreg ... model.matrix -> model.matrix.coxph -> delete.response -> off Execution halted Flavor: r-devel-linux-x86_64-debian-gcc