Skip to content

Commit

Permalink
add dependencies (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrnv authored Apr 12, 2024
1 parent 2515370 commit 4b8494b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
LiveServer = "16fef848-5104-11e9-1b77-fb7a48bbb589"
RateTables = "d40fb65e-c2ee-4113-9e14-cb96ca0acb32"
RCall = "6f49c342-dc21-5d91-9882-a32aef131414"
NetSurvival = "8f9d5d0e-dd2e-4568-92d4-f8c5d34f25cf"
5 changes: 3 additions & 2 deletions docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ test4 = fit(GraffeoTest, @formula(Surv(time,status)~stage+Strata(sex)+Strata(sit

For the sake of comparison, the examples below detail the difference in performance between `NetSurvival.jl` and `relsurv` on R :

```
```@example 1
using RCall
@time fit(PoharPerme, @formula(Surv(time,status)~1), colrec, slopop);
@time R"""
rez = relsurv::rs.surv(survival::Surv(time, stat) ~1, rmap=list(age = age, sex = sex, year = diag), data = relsurv::colrec, ratetable = relsurv::slopop, method = "pohar-perme", add.times=1:8149)
"""
```

```
```@example 1
@time fit(GraffeoTest, @formula(Surv(time,status)~stage), colrec, slopop);
@time R"""
rez = relsurv::rs.diff(survival::Surv(time, stat) ~ stage, rmap=list(age = age, sex = sex, year = diag), data = relsurv::colrec, ratetable = relsurv::slopop)
Expand Down

0 comments on commit 4b8494b

Please sign in to comment.