You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/articles/Sim_time_dependent.Rmd
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ knitr::opts_chunk$set(
17
17
Load the necessary libraries and source the utility functions.
18
18
19
19
```{r setup, message=FALSE, warning=FALSE}
20
-
library(Survinng)
20
+
library(survinng)
21
21
library(ggplot2)
22
22
library(cowplot)
23
23
library(dplyr)
@@ -60,7 +60,7 @@ We consider a simulated dataset with the following characteristics:
60
60
61
61
## Load Models and Data
62
62
63
-
The models used in this vignette are the same as those used in the main paper. The models were trained using the `survivalmodels` package, and the training process is not shown here, but can be found in the `vignettes/articles/Sim_time_dependent` directory or on [GitHub](https://github.com/bips-hb/Survinng/tree/master/vignettes/articles/Sim_time_dependent).
63
+
The models used in this vignette are the same as those used in the main paper. The models were trained using the `survivalmodels` package, and the training process is not shown here, but can be found in the `vignettes/articles/Sim_time_dependent` directory or on [GitHub](https://github.com/bips-hb/survinng/tree/master/vignettes/articles/Sim_time_dependent).
The `explain()` function creates an explainer object for the survival models. The `data` argument specifies the dataset used for explanation, and the `model` argument specifies the model to be explained. The `target` argument indicates the type of prediction to be explained (e.g., "survival", "risk", "cumulative hazard").
98
98
99
99
```{r td explainer}
100
-
exp_deephit <- Survinng::explain(ext_deephit[[1]], data = test)
101
-
exp_coxtime <- Survinng::explain(ext_coxtime[[1]], data = test)
102
-
exp_deepsurv <- Survinng::explain(ext_deepsurv[[1]], data = test)
100
+
exp_deephit <- survinng::explain(ext_deephit[[1]], data = test)
101
+
exp_coxtime <- survinng::explain(ext_coxtime[[1]], data = test)
102
+
exp_deepsurv <- survinng::explain(ext_deepsurv[[1]], data = test)
Copy file name to clipboardExpand all lines: vignettes/articles/Sim_time_independent.Rmd
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ knitr::opts_chunk$set(
16
16
Load the necessary libraries and source the utility functions.
17
17
18
18
```{r setup, message=FALSE, warning=FALSE}
19
-
library(Survinng)
19
+
library(survinng)
20
20
library(ggplot2)
21
21
library(cowplot)
22
22
library(dplyr)
@@ -55,7 +55,7 @@ We consider a simulated dataset with the following characteristics:
55
55
56
56
## Load Models and Data
57
57
58
-
The models used in this vignette are the same as those used in the main paper. The models were trained using the `survivalmodels` package, and the training process is not shown here, but can be found in the `vignettes/articles/Sim_time_independent` directory or on [GitHub](https://github.com/bips-hb/Survinng/tree/master/vignettes/articles/Sim_time_independent).
58
+
The models used in this vignette are the same as those used in the main paper. The models were trained using the `survivalmodels` package, and the training process is not shown here, but can be found in the `vignettes/articles/Sim_time_independent` directory or on [GitHub](https://github.com/bips-hb/survinng/tree/master/vignettes/articles/Sim_time_independent).
59
59
60
60
```{r td fit models, fig.width=10, fig.height=15}
61
61
# Load data
@@ -93,9 +93,9 @@ The `explain()` function creates an explainer object for the survival models. Th
93
93
94
94
95
95
```{r tid explainer}
96
-
exp_deephit <- Survinng::explain(ext_deephit[[1]], data = test)
97
-
exp_coxtime <- Survinng::explain(ext_coxtime[[1]], data = test)
98
-
exp_deepsurv <- Survinng::explain(ext_deepsurv[[1]], data = test)
96
+
exp_deephit <- survinng::explain(ext_deephit[[1]], data = test)
97
+
exp_coxtime <- survinng::explain(ext_coxtime[[1]], data = test)
98
+
exp_deepsurv <- survinng::explain(ext_deepsurv[[1]], data = test)
0 commit comments