You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The predict function does not work if a weights argument is specified during model fitting and the newdata argument is of different length than the original data.
If data is the same length as the original data it works fine. To verify that the weights make no difference to the actual prediction, we can shuffle the data before or after, observing the same results:
Problem
The
predict
function does not work if aweights
argument is specified during model fitting and thenewdata
argument is of different length than the original data.Reproducible Example
which results in the error:
Additional Info
If data is the same length as the original data it works fine. To verify that the weights make no difference to the actual prediction, we can shuffle the data before or after, observing the same results:
System Details
The text was updated successfully, but these errors were encountered: