Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bluefoxr committed May 21, 2024
1 parent 6e409ff commit 338b21c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
4 changes: 4 additions & 0 deletions man/Treat.purse.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/n_scaled.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/testthat/test-treat.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,16 @@ test_that("treat_coin", {
expect_identical(dset_t, dset_t2$x_treat)

})

test_that("disable_treat", {

purse <- build_example_purse(up_to = "Screen", quietly = T)

purse <- Treat(purse, dset = "Screened", disable = T)

d1 <- get_dset(purse, dset = "Treated")
d2 <- get_dset(purse, dset = "Screened")

expect_equal(d1, d2)

})

0 comments on commit 338b21c

Please sign in to comment.