ncn-foreigners/nonprobsvy

'data' must be a data.frame, environment, or list error then estimating using one auxiliary variable only

LukaszChrostowski opened this issue · 1 comments

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