CRAN Package Check Results for Package lrstat

Last updated on 2024-03-13 08:54:36 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.3 215.53 304.81 520.34 OK
r-devel-linux-x86_64-debian-gcc 0.2.3 155.25 246.25 401.50 OK
r-devel-linux-x86_64-fedora-clang 0.2.3 660.56 OK
r-devel-linux-x86_64-fedora-gcc 0.2.3 701.19 OK
r-devel-windows-x86_64 0.2.3 128.00 413.00 541.00 OK
r-patched-linux-x86_64 0.2.3 192.46 294.17 486.63 OK
r-release-linux-x86_64 0.2.3 177.27 288.72 465.99 OK
r-release-macos-arm64 0.2.3 170.00 ERROR
r-release-macos-x86_64 0.2.3 306.00 NOTE
r-release-windows-x86_64 0.2.3 168.00 461.00 629.00 OK
r-oldrel-macos-arm64 0.2.3 173.00 ERROR
r-oldrel-windows-x86_64 0.2.3 147.00 405.00 552.00 OK

Additional issues

M1mac noLD

Check Details

Version: 0.2.3
Check: installed package size
Result: NOTE installed size is 31.3Mb sub-directories of 1Mb or more: libs 29.6Mb Flavors: r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-arm64

Version: 0.2.3
Check: examples
Result: ERROR Running examples in ‘lrstat-Ex.R’ failed The error most likely occurred in: > ### Name: getDesignLogistic > ### Title: Power and sample size for logistic regression > ### Aliases: getDesignLogistic > > ### ** Examples > > > # two ordinal covariates > x1 = c(5, 10, 15, 20) > px1 = c(0.2, 0.3, 0.3, 0.2) > > x2 = c(2, 4, 6) > px2 = c(0.4, 0.4, 0.2) > > # discretizing a normal distribution with mean 4 and standard deviation 2 > nbins = 10 > x3 = qnorm(((1:nbins) - 0.5)/nbins)*2 + 4 > px3 = rep(1/nbins, nbins) > > # combination of covariate values > nconfigs = length(x1)*length(x2)*length(x3) > x = expand.grid(x3 = x3, x2 = x2, x1 = x1) > x = as.matrix(x[, ncol(x):1]) > > # probabilities for the covariate configurations under independence > pconfigs = as.numeric(px1 %x% px2 %x% px3) > > # convert the odds ratio for the predictor variable in 5-unit change > # to the odds ratio in 1-unit change > (design1 <- getDesignLogistic( + beta = 0.1, ncovariates = 3, + nconfigs = nconfigs, + x = x, + pconfigs = pconfigs, + oddsratios = c(1.2^(1/5), 1.4, 1.3), + responseprob = 0.25, + alpha = 0.1)) Error in getDesignLogistic(beta = 0.1, ncovariates = 3, nconfigs = nconfigs, : pconfigs should sum up to 1 Execution halted Flavors: r-release-macos-arm64, r-oldrel-macos-arm64