Create stattransfer.rb

Closes #6582.