Internal helper for getRefit. Returns a list with the model data (the model frame for models fitted without data), restricted to the rows used in the fit, with the new response in column .DHARMa_response, and the formula with this column as response.
getRefitData(object, newresp, rows = rownames(model.frame(object)))a fitted model.
the new response.
the rows used in the fit.