The total weight can never be smaller than the sum of the three other weights. Remove all observations with faulty weight data from the weights
dataset and call this dataset weights_clean
.
gender total_weight meat_weight gut_weight shell_weight Ploss sum_weight
1 M 0.5140 0.2245 0.1010 0.150 0.07490272 0.4755
2 M 0.2255 0.0995 0.0485 0.070 0.03325942 0.2180
3 F 0.6770 0.2565 0.1415 0.210 0.10192024 0.6080
4 M 0.5160 0.2155 0.1140 0.155 0.06104651 0.4845
5 I 0.2050 0.0895 0.0395 0.055 0.10243902 0.1840
6 I 0.3515 0.1410 0.0775 0.120 0.03698435 0.3385
7 F 0.7775 0.2370 0.1415 0.330 0.08874598 0.7085
8 F 0.7680 0.2940 0.1495 0.260 0.08398438 0.7035
9 M 0.5095 0.2165 0.1125 0.165 0.03042198 0.4940
10 F 0.8945 0.3145 0.1510 0.320 0.12185579 0.7855