R Under development (unstable) (2023-12-18 r85702 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(riskRegression) riskRegression version 2023.12.20 > > test_check("riskRegression") [iidCox] internal consistency [iidCox] compare to timereg - no strata, no interaction, continuous [iidCox] compare to timereg - no strata, interaction, continuous [iidCox] compare to timereg - no covariate [iidCox] compare to timereg - no strata, no interaction, categorical [iidCox] compare to timereg - ties [iidCox] compare to timereg - strata [iidCox] compare to timereg - Melanoma [1] "X21" "X7" "X9" [1] "X21" "X7" "X9" [1] "X21" "X7" "X9" [1] "X21" "X7" "X9" [predictCox] Estimation of the baseline hazard (no strata) [predictCox] Estimation of the baseline hazard (strata) [predictCox] Estimation of the baseline hazard (time varying cov, no strata) [predictCox] Estimation of the baseline hazard (time varying cov, strata) [predictCox] Predictions (no strata, continuous) [predictCox] Predictions (no strata, categorical) [predictCox] Predictions (strata) [predictCox] SE/CI check against manual computation [predictCox] Argument 'diag' [predictCox] Confidence band vs timereg [predictCox] Check same result store.iid=minimal vs. full [predictCox] Does not handle weights [predictCox] dealing with negative timepoints or NA [predictCox] Previous bug [predictCoxPL] Check baseline hazard estimation vs survfit [predictCoxPL] Check argument 'diag' + iid vs predictCox [predictRisk.rfsrc] [predictRisk.CauseSpecificCox] [predictRisk.glm] vs. lava Testing binary data with Testing survival data with with formula=Hist(time,event) ~ 1 and conservative = FALSE with formula=Hist(time,event) ~ 1 and conservative = TRUE with formula=Hist(time,event) ~ X1+X2 and conservative = FALSE with formula=Hist(time,event) ~ X1+X2 and conservative = TRUE Testing competing.risks data with with formula=Hist(time,event) ~ 1 and conservative = FALSE with formula=Hist(time,event) ~ 1 and conservative = TRUE with formula=Hist(time,event) ~ X1+X2 and conservative = FALSE with formula=Hist(time,event) ~ X1+X2 and conservative = TRUE [1] "binary" [1] "survival" [1] "competing.risks" [ FAIL 0 | WARN 0 | SKIP 0 | PASS 468 ] > > proc.time() user system elapsed 25.70 1.07 26.78