I was trying to perform a Skillings-Mack test in R and can only get error message saying "Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) :
group length is 0 but data length > 0". I think this might be the way I organized my data but I can't figure out how I should organize my data.

Is there someone who has done this before or has any idea what may be causing the error?