introduce pairs.stanfit method and document it