For continuous outcomes, the user need to specify init.model. Previously, this variable was initialized to a non-specified global variable as follows: init.model = init.model. Since init.model is not defined anywhere in precmed, I have set it equal to NULL by default. However, this issue still needs to be fixed.
#### PRE-PROCESSING ####
out <- data.preproc.mean(fun = "pm", cate.model = cate.model, init.model = init.model, ps.model = ps.model,
score.method = score.method, data = data, prop.cutoff = prop.cutoff, ps.method = ps.method)
For continuous outcomes, the user need to specify
init.model. Previously, this variable was initialized to a non-specified global variable as follows:init.model = init.model. Sinceinit.modelis not defined anywhere in precmed, I have set it equal to NULL by default. However, this issue still needs to be fixed.