Related, Raymond Chandler says in his letters that he taught himself to write a novelette by copying one (by Erle Stanley Gardner). He took the original story and wrote a detailed synopsis, then wrote a novelette from the synopsis, compared it to the original, did rewrites, and so on until he understood what tricks Gardner had used to make the scenes work.
Ben Franklin did this as well. He writes about this exercise in his autobiography.