Ensures the input is data frame-like, contains an id column, and has a
valid weight column. If weight is missing, equal weights of 1 are assigned.
Ensures the input is data frame-like, contains an id column, and has a
valid weight column. If weight is missing, equal weights of 1 are assigned.