CRAN Package Check Results for Package twang

Last updated on 2021-10-27 16:49:22 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.5 19.04 133.65 152.69 OK --no-vignettes
r-devel-linux-x86_64-debian-gcc 2.5 17.84 100.35 118.19 OK --no-vignettes
r-devel-linux-x86_64-fedora-clang 2.5 285.62 OK
r-devel-linux-x86_64-fedora-gcc 2.5 273.66 OK
r-devel-windows-x86_64 2.4 30.00 152.00 182.00 OK --no-vignettes
r-devel-windows-x86_64-gcc10-UCRT 2.4 WARN
r-patched-linux-x86_64 2.4 23.96 128.88 152.84 NOTE --no-vignettes
r-patched-solaris-x86 2.5 376.30 OK
r-release-linux-x86_64 2.4 18.47 128.01 146.48 NOTE --no-vignettes
r-release-macos-arm64 2.4 OK
r-release-macos-x86_64 2.5 OK
r-release-windows-ix86+x86_64 2.4 27.00 185.00 212.00 OK --no-vignettes
r-oldrel-macos-x86_64 2.5 OK
r-oldrel-windows-ix86+x86_64 2.4 46.00 193.00 239.00 OK --no-vignettes

Check Details

Version: 2.4
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: 'OVtool'
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 2.4
Check: running R code from vignettes
Result: WARN
    Errors in running code in vignettes:
    when running code in 'twang.rnw'
    
    > options(width = 80)
    
    > library(twang)
    To reproduce results from prior versions of the twang package, please see the version="legacy" option described in the documentation.
    
    > data(lalonde)
    
    > ps.lalonde.gbm = ps(treat ~ age + educ + black + hispan +
    + nodegree + married + re74 + re75, data = lalonde, n.trees = 5000,
    + interactio .... [TRUNCATED]
    
    > plot(ps.lalonde.gbm)
    
    > options(width = 85)
    
    > lalonde.balance <- bal.table(ps.lalonde.gbm)
    
    > lalonde.balance
    $unw
     tx.mn tx.sd ct.mn ct.sd std.eff.sz stat p ks ks.pval
    age 25.816 7.155 28.030 10.787 -0.309 -2.994 0.003 0.158 0.003
    educ 10.346 2.011 10.235 2.855 0.055 0.547 0.584 0.111 0.081
    black 0.843 0.365 0.203 0.403 1.757 19.371 0.000 0.640 0.000
    hispan 0.059 0.237 0.142 0.350 -0.349 -3.413 0.001 0.083 0.339
    nodegree 0.708 0.456 0.597 0.491 0.244 2.716 0.007 0.111 0.081
    married 0.189 0.393 0.513 0.500 -0.824 -8.607 0.000 0.324 0.000
    re74 2095.574 4886.620 5619.237 6788.751 -0.721 -7.254 0.000 0.447 0.000
    re75 1532.055 3219.251 2466.484 3291.996 -0.290 -3.282 0.001 0.288 0.000
    
    $es.mean.ATT
     tx.mn tx.sd ct.mn ct.sd std.eff.sz stat p ks ks.pval
    age 25.816 7.155 25.802 7.279 0.002 0.015 0.988 0.122 0.892
    educ 10.346 2.011 10.573 2.089 -0.113 -0.706 0.480 0.099 0.977
    black 0.843 0.365 0.842 0.365 0.003 0.027 0.978 0.001 1.000
    hispan 0.059 0.237 0.042 0.202 0.072 0.804 0.421 0.017 1.000
    nodegree 0.708 0.456 0.609 0.489 0.218 0.967 0.334 0.099 0.977
    married 0.189 0.393 0.189 0.392 0.002 0.012 0.990 0.001 1.000
    re74 2095.574 4886.620 1556.930 3801.566 0.110 1.027 0.305 0.066 1.000
    re75 1532.055 3219.251 1211.575 2647.615 0.100 0.833 0.405 0.103 0.969
    
    $ks.max.ATT
     tx.mn tx.sd ct.mn ct.sd std.eff.sz stat p ks ks.pval
    age 25.816 7.155 25.760 7.412 0.008 0.059 0.953 0.106 0.923
    educ 10.346 2.011 10.571 2.141 -0.112 -0.709 0.478 0.107 0.919
    black 0.843 0.365 0.835 0.372 0.023 0.191 0.849 0.008 1.000
    hispan 0.059 0.237 0.043 0.203 0.069 0.776 0.438 0.016 1.000
    nodegree 0.708 0.456 0.601 0.490 0.235 1.101 0.271 0.107 0.919
    married 0.189 0.393 0.199 0.400 -0.025 -0.171 0.864 0.010 1.000
    re74 2095.574 4886.620 1678.117 3948.049 0.085 0.791 0.429 0.053 1.000
    re75 1532.055 3219.251 1259.757 2677.096 0.085 0.715 0.475 0.093 0.973
    
    
    > options(width = 80)
    
    > summary(ps.lalonde.gbm)
     n.treat n.ctrl ess.treat ess.ctrl max.es mean.es max.ks
    unw 185 429 185 429.00000 1.7567745 0.56872589 0.6404460
    es.mean.ATT 185 429 185 22.96430 0.2177817 0.07746175 0.1223384
    ks.max.ATT 185 429 185 27.18469 0.2346990 0.08007702 0.1069914
     max.ks.p mean.ks iter
    unw NA 0.27024507 NA
    es.mean.ATT NA 0.06361021 2127
    ks.max.ATT NA 0.06259804 1751
    
    > plot(ps.lalonde.gbm, plots = 2)
    
    > plot(ps.lalonde.gbm, plots = 3)
    
    > plot(ps.lalonde.gbm, plots = 4)
    
    > plot(ps.lalonde.gbm, plots = 5)
    
    > plot(ps.lalonde.gbm, plots = 3, subset = 2)
    
    > summary(ps.lalonde.gbm$gbm.obj, n.trees = ps.lalonde.gbm$desc$ks.max.ATT$n.trees,
    + plot = FALSE)
     var rel.inf
    black black 57.84196723
    age age 16.51419940
    re74 re74 15.61206620
    re75 re75 3.57534275
    married married 3.02199483
    educ educ 2.91477523
    nodegree nodegree 0.43892919
    hispan hispan 0.08072517
    
    > summary(ps.lalonde.gbm$gbm.obj, n.trees = ps.lalonde.gbm$desc$ks.max.ATT$n.trees)
     var rel.inf
    black black 57.84196723
    age age 16.51419940
    re74 re74 15.61206620
    re75 re75 3.57534275
    married married 3.02199483
    educ educ 2.91477523
    nodegree nodegree 0.43892919
    hispan hispan 0.08072517
    
    > library(survey)
    Loading required package: grid
    Loading required package: Matrix
    Loading required package: survival
    
    Attaching package: 'survey'
    
    The following object is masked from 'package:graphics':
    
     dotchart
    
    
    > lalonde$w <- get.weights(ps.lalonde.gbm, stop.method = "es.mean")
    
    > design.ps <- svydesign(ids = ~1, weights = ~w, data = lalonde)
    
    > glm1 <- svyglm(re78 ~ treat, design = design.ps)
    
    > summary(glm1)
    
    Call:
    svyglm(formula = re78 ~ treat, design = design.ps)
    
    Survey design:
    svydesign(ids = ~1, weights = ~w, data = lalonde)
    
    Coefficients:
     Estimate Std. Error t value Pr(>|t|)
    (Intercept) 5616.6 884.9 6.347 4.28e-10 ***
    treat 732.5 1056.6 0.693 0.488
    ---
    Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
    
    (Dispersion parameter for gaussian family taken to be 49804197)
    
    Number of Fisher Scoring iterations: 2
    
    
    > glm2 <- svyglm(re78 ~ treat + nodegree, design = design.ps)
    
    > summary(glm2)
    
    Call:
    svyglm(formula = re78 ~ treat + nodegree, design = design.ps)
    
    Survey design:
    svydesign(ids = ~1, weights = ~w, data = lalonde)
    
    Coefficients:
     Estimate Std. Error t value Pr(>|t|)
    (Intercept) 6768.4 1471.0 4.601 5.11e-06 ***
    treat 920.3 1082.8 0.850 0.396
    nodegree -1891.8 1261.9 -1.499 0.134
    ---
    Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
    
    (Dispersion parameter for gaussian family taken to be 49013778)
    
    Number of Fisher Scoring iterations: 2
    
    
    > glm3 <- svyglm(re78 ~ treat + age + educ + black +
    + hispan + nodegree + married + re74 + re75, design = design.ps)
    
    > summary(glm3)
    
    Call:
    svyglm(formula = re78 ~ treat + age + educ + black + hispan +
     nodegree + married + re74 + re75, design = design.ps)
    
    Survey design:
    svydesign(ids = ~1, weights = ~w, data = lalonde)
    
    Coefficients:
     Estimate Std. Error t value Pr(>|t|)
    (Intercept) -2.459e+03 4.289e+03 -0.573 0.56671
    treat 7.585e+02 1.019e+03 0.745 0.45674
    age 3.005e+00 5.558e+01 0.054 0.95691
    educ 7.488e+02 2.596e+02 2.884 0.00406 **
    black -7.627e+02 1.012e+03 -0.753 0.45153
    hispan 6.106e+02 1.711e+03 0.357 0.72123
    nodegree 5.350e+02 1.626e+03 0.329 0.74227
    married 4.918e+02 1.072e+03 0.459 0.64660
    re74 5.699e-02 1.801e-01 0.316 0.75176
    re75 1.568e-01 1.946e-01 0.806 0.42076
    ---
    Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
    
    (Dispersion parameter for gaussian family taken to be 47150852)
    
    Number of Fisher Scoring iterations: 2
    
    
    > glm4 <- lm(re78 ~ treat + age + educ + black + hispan +
    + nodegree + married + re74 + re75, data = lalonde)
    
    > summary(glm4)
    
    Call:
    lm(formula = re78 ~ treat + age + educ + black + hispan + nodegree +
     married + re74 + re75, data = lalonde)
    
    Residuals:
     Min 1Q Median 3Q Max
    -13595 -4894 -1662 3929 54570
    
    Coefficients:
     Estimate Std. Error t value Pr(>|t|)
    (Intercept) 6.651e+01 2.437e+03 0.027 0.9782
    treat 1.548e+03 7.813e+02 1.982 0.0480 *
    age 1.298e+01 3.249e+01 0.399 0.6897
    educ 4.039e+02 1.589e+02 2.542 0.0113 *
    black -1.241e+03 7.688e+02 -1.614 0.1071
    hispan 4.989e+02 9.419e+02 0.530 0.5966
    nodegree 2.598e+02 8.474e+02 0.307 0.7593
    married 4.066e+02 6.955e+02 0.585 0.5590
    re74 2.964e-01 5.827e-02 5.086 4.89e-07 ***
    re75 2.315e-01 1.046e-01 2.213 0.0273 *
    ---
    Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
    
    Residual standard error: 6948 on 604 degrees of freedom
    Multiple R-squared: 0.1478, Adjusted R-squared: 0.1351
    F-statistic: 11.64 on 9 and 604 DF, p-value: < 2.2e-16
    
    
    > glm5 <- lm(sqrt(re78) ~ treat + age + educ + black +
    + hispan + nodegree + married + sqrt(re74) + sqrt(re75), data = lalonde)
    
    > library(OVtool)
    
     When sourcing 'twang.R':
    Error: there is no package called 'OVtool'
    Execution halted
    
     'iptw.rnw' using 'UTF-8'... OK
     'mnps.rnw' using 'UTF-8'... OK
     'twang.rnw' using 'UTF-8'... failed
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 2.4
Check: re-building of vignette outputs
Result: NOTE
    Error(s) in re-building vignettes:
    --- re-building 'iptw.rnw' using Sweave
    To reproduce results from prior versions of the twang package, please see the version="legacy" option described in the documentation.
    Loading required package: grid
    Loading required package: Matrix
    Loading required package: survival
    
    Attaching package: 'survey'
    
    The following object is masked from 'package:graphics':
    
     dotchart
    
    --- finished re-building 'iptw.rnw'
    
    --- re-building 'mnps.rnw' using Sweave
    --- finished re-building 'mnps.rnw'
    
    --- re-building 'twang.rnw' using Sweave
    
    Error: processing vignette 'twang.rnw' failed with diagnostics:
     chunk 24
    Error in library(OVtool) : there is no package called 'OVtool'
    
    --- failed re-building 'twang.rnw'
    
    SUMMARY: processing the following file failed:
     'twang.rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 2.4
Flags: --no-vignettes
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘OVtool’
Flavors: r-patched-linux-x86_64, r-release-linux-x86_64