Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
adibender committed Nov 4, 2019
1 parent 0be43dc commit 3b908cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ matrix:
include:
- r: devel
- r: release
- r: release
name: tidyr-dev
before_script: Rscript -e "remotes::install_github('tidyverse/tidyr')"

r_packages:
- pammtools # for building pkgdown vignettes via travis
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-cumulative-effect.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ test_that("LL helpers and as_ped produce equivalent LL windows", {
# define lag-lead window function
ll_fun <- function(t, tz) t >= tz
ll_fun2 <- function(t, tz) t >= tz + 2 & t <= tz + 2 + 5
## define tdc functions
f_xyz1 <- function(t, tz, z) 1
# simulate data with cumulative effect
sim_df <- sim_pexp(
formula = ~ -3.5 - 0.5 * x1 |
fcumu(t, tz1, z.tz1, f_xyz = f_xyz1, ll_fun = ll_fun) +
fcumu(t, tz2, z.tz2, f_xyz = f_xyz1, ll_fun = ll_fun2),
fcumu(t, tz1, z.tz1, f_xyz = function(t, tz, z) 1,
ll_fun = function(t, tz) t >= tz) +
fcumu(t, tz2, z.tz2, f_xyz = function(t, tz, z) 1,
ll_fun = function(t, tz) t >= tz + 2 & t <= tz + 2 + 5),
data = df,
cut = 0:10)
sim_df$time <- 10
Expand Down

0 comments on commit 3b908cb

Please sign in to comment.