R Under development (unstable) (2024-11-14 r87333 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(OutcomeWeights) > > test_check("OutcomeWeights") Estimate SE t p PLR 0.682805 0.233354 2.9260 0.004249 ** PLR-IV 0.021523 0.361204 0.0596 0.952605 AIPW-ATE 0.668180 0.299851 2.2284 0.028095 * Wald-AIPW 0.036126 0.422165 0.0856 0.931977 --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Weight summary for estimator PLR Control Treated Minimum weight -0.0002 0.0283 Maximum weight 0.0195 0.0471 % Negative 0.0286 0.0000 Sum largest 10% 0.1348 0.1366 Sum of weights 0.9997 0.9997 Sum of absolute weights 1.0002 0.9997 Weight summary for estimator PLR-IV Control Treated Minimum weight -0.0555 0.0154 Maximum weight 0.0471 0.0552 % Negative 0.2571 0.0000 Sum largest 10% 0.3086 0.1519 Sum of weights 1.0036 1.0036 Sum of absolute weights 2.3120 1.0036 Weight summary for estimator AIPW-ATE Control Treated Minimum weight 0.0093 0.0249 Maximum weight 0.0162 0.0542 % Negative 0.0000 0.0000 Sum largest 10% 0.1131 0.1526 Sum of weights 1.0000 1.0000 Sum of absolute weights 1.0000 1.0000 Weight summary for estimator Wald-AIPW Control Treated Minimum weight -0.0564 0.0213 Maximum weight 0.0460 0.0562 % Negative 0.2571 0.0000 Sum largest 10% 0.3054 0.1503 Sum of weights 0.9947 0.9947 Sum of absolute weights 2.2805 0.9947 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 6 ] > > proc.time() user system elapsed 5.14 0.81 2.68