Recently we migrated question about repeating simulation function in R to SO. Initially I voted to migrate it to SO, however then it got quite nice answer by Xi'an that focused on its statistical content. This made me retract my vote, however it was migrated since it gathered enough votes for migration. Now we have very purely formatted question and answer (SO does not allow for TeX) and they taken together do not really fit well to SO. We probably cannot migrate them back, but maybe we should be more careful about such decisions? Is it an example of on-topic or off-topic question?
It looks like the community made the right decision. Xi'an's answer was purely software-oriented, explaining how to use
cusum and an iterator in
R to accomplish a calculation efficiently. That makes it a fine answer--on Stack Overflow.
Generally, when a thread is migrated and we would like to take it back, we can contact the moderators on the destination site and ask them to reject the migration. But it's hard to conceive of a case where a migration would obviously be wrong: our community consists of thoughtful and experienced people. Although individuals may have differences of opinion, it is highly unlikely that any glaring mistake would be made. Most likely the best solution for migration of any question that, in retrospect, appears to have some statistical content, would be to persuade the O.P. to re-post it with a focus on the statistical issue.