Skip to content

Commit

Permalink
Fix for issue 151
Browse files Browse the repository at this point in the history
  • Loading branch information
nt-williams committed Nov 4, 2024
1 parent 65e16c0 commit 9bec661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Bug Fixes

- Using fitted values from isotonic regression in `lmtp_survival()` instead of the original values (see issue \#149).
- Bootstrap TMLE uses cumulative density ratios (see issue \#151).

### General

Expand Down
4 changes: 4 additions & 0 deletions R/tmle2.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cf_tmle2 <- function(task, ratios, m_init, control) {
ratios <- matrix(t(apply(ratios, 1, cumprod)),
nrow = nrow(ratios),
ncol = ncol(ratios))

psi <- estimate_tmle2(task$natural,
task$cens,
task$risk,
Expand Down

0 comments on commit 9bec661

Please sign in to comment.