See https://eigenfoo.xyz/tests-as-linear/#5.2-Welch%E2%80%99s-t-test The original R post (https://lindeloev.github.io/tests-as-linear/#52_welch%E2%80%99s_t-test) does not go into detail about how to modify the linear model to have different variances.