R Under development (unstable) (2026-01-07 r89288 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 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(smoothedIPW) > > test_check("smoothedIPW") Attaching package: 'data.table' The following object is masked from 'package:base': %notin% ======================================================================= Point Estimates: Counterfactual Outcome Mean ======================================================================= Settings: ----------------------------------------------------------------------- Method: Time-smoothed IPW Outcome times: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 Estimates: ----------------------------------------------------------------------- time Z=0 Z=1 0 0.033695099 -0.008793305 1 0.029266727 -0.013221677 2 0.024838355 -0.017650050 3 0.020409982 -0.022078422 4 0.015981610 -0.026506794 5 0.011553237 -0.030935167 6 0.007124865 -0.035363539 7 0.002696493 -0.039791912 8 -0.001731880 -0.044220284 9 -0.006160252 -0.048648656 10 -0.010588624 -0.053077029 11 -0.015016997 -0.057505401 12 -0.019445369 -0.061933773 13 -0.023873742 -0.066362146 14 -0.028302114 -0.070790518 15 -0.032730486 -0.075218891 16 -0.037158859 -0.079647263 17 -0.041587231 -0.084075635 18 -0.046015603 -0.088504008 19 -0.050443976 -0.092932380 20 -0.054872348 -0.097360752 21 -0.059300721 -0.101789125 22 -0.063729093 -0.106217497 23 -0.068157465 -0.110645870 24 -0.072585838 -0.115074242 ======================================================================= Point Estimates: Counterfactual Outcome Mean ======================================================================= Settings: ----------------------------------------------------------------------- Method: Time-smoothed IPW (stacked) Outcome times: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 Estimates: ----------------------------------------------------------------------- time Z=0 Z=1 [1,] 0 0.5129698 0.5005252 [2,] 1 0.5112590 0.4987923 [3,] 2 0.5095330 0.4970320 [4,] 3 0.5078212 0.4953489 [5,] 4 0.5060677 0.4935525 [6,] 5 0.5042976 0.4917460 [7,] 6 0.5025891 0.4900614 [8,] 7 0.5007792 0.4882053 [9,] 8 0.4989985 0.4864070 [10,] 9 0.4973560 0.4848145 [11,] 10 0.4957423 0.4832512 [12,] 11 0.4939411 0.4814220 [13,] 12 0.4921616 0.4796268 [14,] 13 0.4902538 0.4776669 [15,] 14 0.4885679 0.4759990 [16,] 15 0.4871182 0.4746263 [17,] 16 0.4852188 0.4726844 [18,] 17 0.4833377 0.4707705 [19,] 18 0.4813872 0.4687761 [20,] 19 0.4792329 0.4665416 [21,] 20 0.4773528 0.4646424 [22,] 21 0.4753078 0.4625501 [23,] 22 0.4735290 0.4607745 [24,] 23 0.4713721 0.4585583 [25,] 24 0.4694869 0.4566619 ======================================================================= Confidence Intervals: Counterfactual Outcome Mean ======================================================================= Settings: ----------------------------------------------------------------------- Method: Non-smoothed IPW Outcome times: 6, 12, 18, 24 Bootstrap samples: 5 Confidence level: 95% Confidence Intervals: ----------------------------------------------------------------------- Outcome Mean under Z = 0: Time Estimate CI Lower CI Upper 6 0.17205791 -0.6272964 0.87122824 12 -0.86210545 -1.6071456 -0.51807594 18 0.01132552 -1.0941955 0.01763019 24 -1.14718357 -2.1224595 -1.02116571 Outcome Mean under Z = 1: Time Estimate CI Lower CI Upper 6 0.2764577 -0.4931631 0.8617400 12 0.1321826 -0.2527514 0.6302980 18 0.3952913 -0.3314285 0.4198250 24 0.3107787 -0.2087161 0.9350317 [ FAIL 0 | WARN 6 | SKIP 0 | PASS 27 ] [ FAIL 0 | WARN 6 | SKIP 0 | PASS 27 ] > > proc.time() user system elapsed 23.48 2.64 26.03