Error comes from
y_rand_pred <- stats::predict.glm(model_out$glm, newdata = model_frame, type = "response") - line 40 glm.R
Reason - model_frame stores vector instead of data.frame.
File tree of the generated error -> glm.R#40 - nonprobDR.R#454 - nonprob.R#77.
Potential solution is to transform output of model_frame function in data_manip.R file
Error comes from
y_rand_pred <- stats::predict.glm(model_out$glm, newdata = model_frame, type = "response")
- line 40 glm.R Reason - model_frame storesvector
instead ofdata.frame
. File tree of the generated error -> glm.R#40 - nonprobDR.R#454 - nonprob.R#77. Potential solution is to transform output ofmodel_frame
function in data_manip.R file