I am helping a STEM PhD student with a statistical approach they developed for a key thesis chapter. Unfortunately, the approach is fundamentally flawed and makes no statistical sense. (I'm a freelancer with a statistics PhD and first got this as a programming job before finding the issues.)
I've tried to explain why the approach won't work, but to no avail. The person keeps on looking for workarounds, which I know won't work either. The approach should be ditched entirely.
What's a reasonable solution in such cases? Should I suggest potential alternatives for the chapter—and I can think of a few? If so, how should I proceed ethically?
There is a related question, focusing on a midterm marking.
Added in response to comments:
The job began as statistical programming help, which I later discovered to be for the client’s PhD (as usual, the initial job details were scant). The student client is the one paying; I’m unaware of the funding source. My previous academic clients obtained university grants to cover the fees and noted my contributions, primarily code, in their thesis or paper acknowledgements. For me personally, correct execution is a matter of professional ethics. I also do not wish to abet violations of academic ethics.