Skip to content

Commit

Permalink
Merge pull request #243 from adibender/issue-241
Browse files Browse the repository at this point in the history
update vignettes veteran data usage
  • Loading branch information
adibender authored Feb 24, 2024
2 parents fb62a7d + 7f7be04 commit da57368
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vignettes/basics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ library(mgcv)
library(pammtools)
library(dplyr)
data("veteran", package = "survival") # load veteran data
veteran <- survival::veteran
# remove ties to illustrate equivalence with Cox approach
vetu <- filter(veteran, !duplicated(time))
ped_vetu <- vetu %>%
Expand Down
2 changes: 1 addition & 1 deletion vignettes/splines.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ We first illustrate the estimation on non-linear smooth effects using
the `veteran` data from the survival package:

```{r}
data("veteran", package="survival") # load veteran package
veteran <- survival::veteran # load veteran package
veteran <- veteran %>%
mutate(
trt = 1+(trt == 2),
Expand Down
2 changes: 1 addition & 1 deletion vignettes/strata.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ from the `survival` package,
where the cell type of the lung cancer had four levels:

```{r}
data("veteran") # load veteran data
veteran <- survival::veteran # load veteran data
veteran <- veteran %>%
mutate(
trt = 1*(trt == 2),
Expand Down
2 changes: 1 addition & 1 deletion vignettes/tveffects.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Karnofsky performance scores `karno` (the higher the better), `age` and whether

```{r}
# for some reason the prior variable is coded 0/10 instead of 0/1
data("veteran", package = "survival")
veteran <- survival::veteran
veteran <- veteran %>%
mutate(
trt = 1L * (trt == 2),
Expand Down

0 comments on commit da57368

Please sign in to comment.