I was recently asked to join a manuscript which had been rejected by a journal. My revisions ended up removing 100% of another author's contributions (i.e. a different approach to the statistical analyses). In my field, this author's contributions were sufficient to warrant authorship - now that their contribution has been removed, should they still be included as an author? (To the extent that it matters, we're all perfectly happy to include them because of the work they put into the paper. I'm curious about the publishing ethics) Thanks!
Edit: I thought I'd add some more info based on comments/questions.
The reason the paper was originally rejected was due to the statistical analyses. I made two main changes to the statistical methods - one necessary (the reason it was originally rejected), and one optional:
1) (necessary) The experimental design required that a mixed-effects/multi-level model be used. In the original version of the paper, this was not done.
2) (optional) While this question could reasonably be addressed using frequentist methods, I thought a Bayesian method did a better job answering the question.