@@ -32,7 +32,7 @@ strategy_maic <- function(formula = NULL,
3232 family = gaussian(link = " identity" ),
3333 trt_var = NULL ,
3434 R = 1000L ) {
35- check_formula(formula )
35+ check_formula(formula , trt_var )
3636 check_family(family )
3737
3838 if (R < = 0 || R %% 1 != 0 ) {
@@ -74,7 +74,7 @@ strategy_maic <- function(formula = NULL,
7474strategy_stc <- function (formula = NULL ,
7575 family = gaussian(link = " identity" ),
7676 trt_var = NULL ) {
77- check_formula(formula )
77+ check_formula(formula , trt_var )
7878 check_family(family )
7979
8080 args <- list (formula = formula ,
@@ -132,7 +132,7 @@ strategy_gcomp_ml <- function(formula = NULL,
132132 rho = NA ,
133133 R = 1000L ,
134134 N = 1000L ) {
135- check_formula(formula )
135+ check_formula(formula , trt_var )
136136 check_family(family )
137137
138138 if (R < = 0 || R %% 1 != 0 ) {
@@ -195,7 +195,7 @@ strategy_gcomp_stan <- function(formula = NULL,
195195 trt_var = NULL ,
196196 rho = NA ,
197197 N = 1000L ) {
198- check_formula(formula )
198+ check_formula(formula , trt_var )
199199 check_family(family )
200200
201201 if (N < = 0 || N %% 1 != 0 ) {
@@ -225,7 +225,7 @@ strategy_mim <- function(formula = NULL,
225225 trt_var = NULL ,
226226 rho = NA ,
227227 N = 1000L ) {
228- check_formula(formula )
228+ check_formula(formula , trt_var )
229229 check_family(family )
230230
231231 if (N < = 0 || N %% 1 != 0 ) {
0 commit comments