You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I model treatment using glm, a subsequent call to timepoints() fails. The error message is:
Error in terms.formula(newformula, specials = names(attr(termobj, "specials"))) :
invalid model formula in ExtractVars
In addition: Warning message:
In if (class(SL.trt) != "SuperLearner") { :
the condition has length > 1 and only the first element will be used
Here is a reproducible example straight from the survtmle help file:
One clue: this line in the checkInputs function tglm <- any(class(object$trtMod[[1]]) %in% c("glm", "speedglm"))
returns FALSE if we specify glm.trt, because class(object$trtMod) is not a list (it evaluates to: "glm, lm")
The text was updated successfully, but these errors were encountered:
Hi,
When I model treatment using glm, a subsequent call to timepoints() fails. The error message is:
Here is a reproducible example straight from the survtmle help file:
But if instead we specify SL.trt = "SL.glm", it works fine.
One clue: this line in the
checkInputs
functiontglm <- any(class(object$trtMod[[1]]) %in% c("glm", "speedglm"))
returns FALSE if we specify glm.trt, because class(object$trtMod) is not a list (it evaluates to: "glm, lm")
The text was updated successfully, but these errors were encountered: