CRAN Package Check Results for Package optrdd

Last updated on 2017-11-20 04:47:44.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.9 0.50 21.52 22.02 NOTE
r-devel-linux-x86_64-debian-gcc 0.9 0.63 43.81 44.44 NOTE
r-devel-linux-x86_64-fedora-clang 0.9 30.72 ERROR
r-devel-linux-x86_64-fedora-gcc 0.9 46.08 OK
r-devel-windows-ix86+x86_64 0.9 5.00 46.00 51.00 NOTE
r-patched-linux-x86_64 0.9 0.64 22.70 23.33 NOTE
r-patched-solaris-x86 0.9 53.10 NOTE
r-release-linux-x86_64 0.9 0.59 22.78 23.38 NOTE
r-release-windows-ix86+x86_64 0.9 2.00 57.00 59.00 NOTE
r-release-osx-x86_64 0.9 NOTE
r-oldrel-windows-ix86+x86_64 0.9 2.00 47.00 49.00 NOTE
r-oldrel-osx-x86_64 0.9 NOTE

Check Details

Version: 0.9
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘Rmosek’
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 0.9
Check: examples
Result: ERROR
    Running examples in ‘optrdd-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: optrdd
    > ### Title: Optimized regression discontinuity design
    > ### Aliases: optrdd
    >
    > ### ** Examples
    >
    > # Simple regression discontinuity with discrete X
    > n = 4000; threshold = 0
    > X = sample(seq(-4, 4, by = 8/41.5), n, replace = TRUE)
    > W = as.numeric(X >= threshold)
    > Y = 0.4 * W + 1 / (1 + exp(2 * X)) + 0.2 * rnorm(n)
    > # using 0.4 for max.second.derivative would have been enough
    > out.1 = optrdd(X=X, Y=Y, W=W, max.second.derivative = 0.5, estimation.point = threshold)
    [1] "Running quadrprog with problem of size: 4042 x 87..."
    > print(out.1); plot(out.1, xlim = c(-1.5, 1.5))
    [1] "95% CI for tau: 0.4 +/- 0.11"
    >
    > # Now, treatment is instead allocated in a neighborhood of 0
    > thresh.low = -1; thresh.high = 1
    > W = as.numeric(thresh.low <= X & X <= thresh.high)
    > Y = 0.2 * (1 + X) * W + 1 / (1 + exp(2 * X)) + rnorm(n)
    > # This estimates CATE at specifically chosen points
    > out.2 = optrdd(X=X, Y=Y, W=W, max.second.derivative = 0.5, estimation.point = thresh.low)
    Acquiring MOSEK environment
    MOSEK Warning 710 : 2 near zero elements are specified in sparse col '' (98) of matrix 'A'.
    MOSEK Warning 710 : 2 near zero elements are specified in sparse col '' (198) of matrix 'A'.
    Computer - Platform : Linux/64-X86
    Computer - CPU type : Intel-P4
    MOSEK - task name :
    MOSEK - objective sense : min
    MOSEK - problem type : CONIC (conic optimization problem)
    MOSEK - constraints : 8042 variables : 249
    MOSEK - integer variables : 0
    Optimizer started.
    MOSEK Error 1010 : The problem has 249 constraint(s) but the license allows only 150 constraint(s) for feature 'PTS'.
    MOSEK Error 1011 : The problem has 8042 variable(s) but the license allows only 300 variable(s) for feature 'PTS'.
    Optimizer terminated. Time: 0.01
    Optimization interrupted.
    ERROR: MSK_RES_ERR_SIZE_LICENSE_CON: The problem has too many constraints.
    Error in -mosek.out$sol$itr$xx[1:num.realized.0] :
     invalid argument to unary operator
    Calls: optrdd
    Execution halted
    Releasing MOSEK environment
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.9
Check: tests
Result: ERROR
     Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(optrdd)
     >
     > test_check("optrdd")
     Error in -mosek.out$sol$itr$xx[1:num.realized.0] :
     invalid argument to unary operator
     Calls: test_check ... with_reporter -> force -> source_file -> eval -> eval -> optrdd
     testthat results ================================================================
     OK: 8 SKIPPED: 1 FAILED: 0
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang