Last updated on 2026-10-24 12:51:45 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.0.7 | 42.80 | 287.19 | 329.99 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.0.7 | 30.21 | 167.44 | 197.65 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 1.0.7 | 31.00 | 184.31 | 215.31 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 1.0.7 | 31.00 | 175.11 | 206.11 | OK | |
| r-devel-windows-x86_64 | 1.0.7 | 48.00 | 272.00 | 320.00 | OK | |
| r-patched-linux-x86_64 | 1.0.7 | 43.41 | 261.48 | 304.89 | OK | |
| r-release-linux-x86_64 | 1.0.7 | 41.61 | 265.06 | 306.67 | OK | |
| r-release-macos-arm64 | 1.0.7 | 11.00 | 57.00 | 68.00 | OK | |
| r-release-macos-x86_64 | 1.0.7 | 30.00 | 241.00 | 271.00 | OK | |
| r-release-windows-x86_64 | 1.0.7 | 46.00 | 262.00 | 308.00 | OK | |
| r-oldrel-macos-arm64 | 1.0.7 | OK | ||||
| r-oldrel-macos-x86_64 | 1.0.7 | 25.00 | 115.00 | 140.00 | OK | |
| r-oldrel-windows-x86_64 | 1.0.7 | 64.00 | 349.00 | 413.00 | OK |
Version: 1.0.7
Check: examples
Result: ERROR
Running examples in ‘RISCA-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: gc.survival
> ### Title: Marginal Effect for Censored Outcome by G-computation with a Cox
> ### Regression for the Outcome Model.
> ### Aliases: gc.survival
> ### Keywords: G-computation
>
> ### ** Examples
>
> data(dataDIVAT2)
>
> #Raw effect of the treatment
> cox.raw <- coxph(Surv(times,failures) ~ ecd, data=dataDIVAT2, x=TRUE)
> summary(cox.raw)
Call:
coxph(formula = Surv(times, failures) ~ ecd, data = dataDIVAT2,
x = TRUE)
n= 1837, number of events= 582
coef exp(coef) se(coef) z Pr(>|z|)
ecd 0.67857 1.97105 0.08602 7.889 3.06e-15 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
exp(coef) exp(-coef) lower .95 upper .95
ecd 1.971 0.5073 1.665 2.333
Concordance= 0.582 (se = 0.011 )
Likelihood ratio test= 59.25 on 1 df, p=1e-14
Wald test = 62.23 on 1 df, p=3e-15
Score (logrank) test = 64.46 on 1 df, p=1e-15
>
> #Conditional effect of the treatment
> cox.cdt <- coxph(Surv(times,failures) ~ ecd + age + retransplant,
+ data=dataDIVAT2, x=TRUE)
> summary(cox.cdt)
Call:
coxph(formula = Surv(times, failures) ~ ecd + age + retransplant,
data = dataDIVAT2, x = TRUE)
n= 1837, number of events= 582
coef exp(coef) se(coef) z Pr(>|z|)
ecd 0.51006 1.66540 0.10521 4.848 1.25e-06 ***
age 0.01092 1.01098 0.00371 2.943 0.00325 **
retransplant 0.29440 1.34232 0.09740 3.023 0.00251 **
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
exp(coef) exp(-coef) lower .95 upper .95
ecd 1.665 0.6005 1.355 2.047
age 1.011 0.9891 1.004 1.018
retransplant 1.342 0.7450 1.109 1.625
Concordance= 0.606 (se = 0.013 )
Likelihood ratio test= 75.04 on 3 df, p=4e-16
Wald test = 76.69 on 3 df, p=<2e-16
Score (logrank) test = 79.21 on 3 df, p=<2e-16
>
> #Marginal effect of the treatment (ATE): use 1000 iterations instead of 10
> #We restricted to 10 to respect the CRAN policy in terms of time for computation
> gc.ate <- gc.survival(object=cox.cdt, data=dataDIVAT2, group="ecd", times="times",
+ failures="failures", max.time=max(dataDIVAT2$times), iterations=10, effect="ATE",
+ n.cluster=1)
Error in a$specials[[i]] : subscript out of bounds
Calls: gc.survival ... explp -> predict -> predict.coxph -> delete.response -> off
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc