I am tasked with calculating the same Least Significant Difference (LSD) in python as the following SAS code does. I am not overly familiar with stats, so any formulas or co