Examples
In this section, we will be showcasing an example on how the key functions in the package work (with a comparaison to the results obtained in the relsurv
package in R).
In this example, we will be using the dataset colrec
which refers to patients with colon and rectal cancer diagnosed in 1994-2000. By loading the slopop
rate table based on the Slovenian population, we will be able to apply the Pohar Perme estimator as well as the Grafféo log-rank test for net survival analysis purposes.
using NetSurvival, RateTables
+Examples · NetSurvival.jl Examples
In this section, we will be showcasing an example on how the key functions in the package work (with a comparaison to the results obtained in the relsurv
package in R).
In this example, we will be using the dataset colrec
which refers to patients with colon and rectal cancer diagnosed in 1994-2000. By loading the slopop
rate table based on the Slovenian population, we will be able to apply the Pohar Perme estimator as well as the Grafféo log-rank test for net survival analysis purposes.
using NetSurvival, RateTables
pp1 = fit(PoharPerme, @formula(Surv(time,status)~1), colrec, slopop)
8149×5 DataFrame
Row │ Sₑ ∂Λₑ σₑ lower_95_CI upper_95_CI
│ Float64 Float64 Float64 Float64 Float64
@@ -100,4 +100,4 @@
Value of test statistic: 658.6024
Degrees of freedom: 3
P value: 0
-
Settings
This document was generated with Documenter.jl version 1.3.0 on Friday 12 April 2024. Using Julia version 1.10.2.
+