Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion R/tmlecte.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ tmle.cte <- function(A, B, Y, a=0, Delta=NULL, Q.method="glm", Q.formula=NULL, Q
}
gDelta.1 <- .bound(gDelta.1, c(1, min(gbound)))
} else {
gDelta.1 <- rep(1, length(Y))
if (method=="user" && !is.null(gDelta.1) && sum(!is.na(gDelta.1))>0) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here method should be gDelta.method I think

# If there are no missing values for outcome, but gDelta.1 is specified by the user,
# Do nothing. Leave as is.
} else {
gDelta.1 <- rep(1, length(Y))
}
}

fail=FALSE
Expand Down