@@ -66,7 +66,7 @@ check_inputs_adjustedsurv <- function(data, variable, ev_time, event, method,
6666 # method
6767 } else if (! method %in% c(" km" , " iptw_km" , " iptw_cox" , " iptw_pseudo" ,
6868 " direct" , " direct_pseudo" , " aiptw_pseudo" ,
69- " aiptw" , " tmle " , " ostmle " , " matching" ,
69+ " aiptw" , " matching" ,
7070 " emp_lik" , " strat_cupples" , " strat_amato" ,
7171 " strat_nieto" )) {
7272 stop(" Method '" , method , " ' is undefined. See documentation for " ,
@@ -114,8 +114,7 @@ check_inputs_adjustedsurv <- function(data, variable, ev_time, event, method,
114114 levs_len <- length(unique(data [, variable ]))
115115 if (levs_len < 2 ) {
116116 stop(" There have to be at least two groups in 'variable'." )
117- } else if (levs_len > 2 & method %in% c(" matching" , " emp_lik" , " tmle" ,
118- " ostmle" , " aiptw" )) {
117+ } else if (levs_len > 2 & method %in% c(" matching" , " emp_lik" , " aiptw" )) {
119118 stop(" Categorical treatments are currently not supported for " ,
120119 " method='" , method , " '." )
121120 }
@@ -248,13 +247,6 @@ check_inputs_adjustedsurv <- function(data, variable, ev_time, event, method,
248247 }
249248 }
250249
251- # # TMLE / OSTMLE
252- } else if (method == " tmle" | method == " ostmle" ) {
253- # times
254- if (! is.null(times ) && (! all(times == floor(times )))) {
255- stop(" Only integer time is allowed when using method='tmle' or" ,
256- " method='ostmle'." )
257- }
258250 # # Empirical Likelihood
259251 } else if (method == " emp_lik" ) {
260252 # need treatment_vars
@@ -677,7 +669,7 @@ check_inputs_adjustedcif <- function(data, variable, ev_time, event, method,
677669 " character strings, specifying variables in 'data'." )
678670 } else if (! method %in% c(" aalen_johansen" , " iptw" , " iptw_pseudo" , " direct" ,
679671 " direct_pseudo" , " aiptw_pseudo" ,
680- " aiptw" , " tmle " , " matching" )) {
672+ " aiptw" , " matching" )) {
681673 stop(" Method '" , method , " ' is undefined. See documentation for " ,
682674 " details on available methods." )
683675 # conf_int
@@ -750,7 +742,7 @@ check_inputs_adjustedcif <- function(data, variable, ev_time, event, method,
750742 levs_len <- length(unique(data [, variable ]))
751743 if (levs_len < 2 ) {
752744 stop(" There have to be at least two groups in 'variable'." )
753- } else if (levs_len > 2 & method %in% c(" matching" , " tmle " , " aiptw" )) {
745+ } else if (levs_len > 2 & method %in% c(" matching" , " aiptw" )) {
754746 stop(" Categorical treatments are currently not supported for " ,
755747 " method='" , method , " '." )
756748 }
@@ -861,11 +853,6 @@ check_inputs_adjustedcif <- function(data, variable, ev_time, event, method,
861853 }
862854 }
863855
864- # # TMLE
865- } else if (method == " tmle" ) {
866- if (! is.null(times ) && (! all(times == floor(times )))) {
867- stop(" Only integer time is allowed when using method='tmle'." )
868- }
869856 # # Matching
870857 } else if (method == " matching" ) {
871858 # treatment_model
0 commit comments