Ensures a named vector contains all expected predictor names by filling in missing predictors with NA. Used to standardize model coefficient vectors across targets when some predictors may be absent due to singularities or model fitting failures.
fill_predictors(x, all)A named vector containing all predictors from 'all', with original values from 'x' where present and NA for missing predictors