CRAN Package Check Results for Package mlt

Last updated on 2026-10-24 01:51:39 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.8-4 13.93 196.24 210.17 OK
r-devel-linux-x86_64-debian-gcc 1.8-4 8.89 130.99 139.88 ERROR
r-devel-linux-x86_64-fedora-clang 1.8-4 11.00 166.83 177.83 OK
r-devel-linux-x86_64-fedora-gcc 1.8-4 9.00 126.46 135.46 OK
r-devel-windows-x86_64 1.8-4 17.00 249.00 266.00 OK
r-patched-linux-x86_64 1.8-4 12.35 192.01 204.36 OK
r-release-linux-x86_64 1.8-4 12.10 191.52 203.62 OK
r-release-macos-arm64 1.8-4 4.00 43.00 47.00 OK
r-release-macos-x86_64 1.8-4 11.00 201.00 212.00 OK
r-release-windows-x86_64 1.8-4 16.00 170.00 186.00 OK
r-oldrel-macos-arm64 1.8-4 5.00 58.00 63.00 OK
r-oldrel-macos-x86_64 1.8-4 11.00 174.00 185.00 OK
r-oldrel-windows-x86_64 1.8-4 22.00 244.00 266.00 OK

Check Details

Version: 1.8-4
Check: tests
Result: ERROR Running ‘2sample.R’ [2s/2s] Comparing ‘2sample.Rout’ to ‘2sample.Rout.save’ ... OK Running ‘Cox-Ex.R’ [2s/3s] Running ‘bugfixes.R’ [3s/3s] Comparing ‘bugfixes.Rout’ to ‘bugfixes.Rout.save’ ... OK Running ‘distr-Ex.R’ [2s/2s] Running ‘dpq-Ex.R’ [7s/11s] Comparing ‘dpq-Ex.Rout’ to ‘dpq-Ex.Rout.save’ ... OK Running ‘glm-Ex.R’ [2s/3s] Comparing ‘glm-Ex.Rout’ to ‘glm-Ex.Rout.save’ ... OK Running ‘lm-Ex.R’ [3s/4s] Comparing ‘lm-Ex.Rout’ to ‘lm-Ex.Rout.save’ ... OK Running ‘missing-responses.R’ [2s/3s] Running ‘mmlt_ll_sc.R’ [30s/42s] Running ‘polr-Ex.R’ [2s/2s] Comparing ‘polr-Ex.Rout’ to ‘polr-Ex.Rout.save’ ... OK Running ‘predict-Ex.R’ [3s/4s] Comparing ‘predict-Ex.Rout’ to ‘predict-Ex.Rout.save’ ... OK Running ‘subset.R’ [2s/2s] Comparing ‘subset.Rout’ to ‘subset.Rout.save’ ... OK Running ‘surv-Ex.R’ [2s/3s] Comparing ‘surv-Ex.Rout’ to ‘surv-Ex.Rout.save’ ... OK Running the tests in ‘tests/Cox-Ex.R’ failed. Complete output: > > library("mlt") Loading required package: basefun Loading required package: variables > library("survival") > set.seed(29) > options(digits = 3) > > > ### true dgp > rY <- function(n, ...) rexp(n, ...) > pY <- function(x, ...) pexp(x, ...) > dY <- function(x, ...) dexp(x, ...) > > ### three groups > gf <- gl(3, 1) > g <- rep(gf, 500) > y <- rY(length(g), rate = (1:nlevels(g))[g]) > mydata <- data.frame(y = y, g = g) > > boxplot(y ~ g, data = mydata) > > ### uncensored, Cox model, h = bernstein > Bb <- Bernstein_basis(numeric_var("y", support = c(0, max(y) + .1), bounds = c(0, Inf)), + order = 5, ui = "increasing") > s <- as.basis(~ g, data = data.frame(g = gf), remove_intercept = TRUE) > m <- ctm(response = Bb, shifting = s, todist = "MinExtrVal") > (cf1 <- coef(opt <- mlt(m, data = mydata))) Bs1(y) Bs2(y) Bs3(y) Bs4(y) Bs5(y) Bs6(y) g2 g3 -2.556 1.220 1.220 1.220 1.220 1.898 0.839 1.222 > coef(cph <- coxph(Surv(y, rep(TRUE, nrow(mydata))) ~ g, data = mydata)) g2 g3 0.693 1.004 > yn <- mkgrid(Bb, 50)$y > yn <- yn[yn > 0] > a <- predict(opt, newdata = data.frame(g = gf[1]), q = yn) > layout(matrix(1:4, ncol = 2)) > plot(yn, a, type = "l", col = "red") > lines(yn, log(yn)) > a <- predict(opt, newdata = data.frame(g = gf), q = yn, type = "survivor") > plot(yn, a[,1], type = "l", col = "red", ylim = c(0, 1)) > lines(survfit(cph, newdata = data.frame(g = gf[1]))) Error in a$specials[[i]] : subscript out of bounds Calls: lines ... survfit.coxph -> model.matrix.coxph -> delete.response -> off Execution halted Flavor: r-devel-linux-x86_64-debian-gcc