Since I began having OBEs when I was five or six years old, they came spontaneously to me. Not until my 30s did I begin to practice having them on purpose, but I was already very used to the experience and had no fear of what was happening or what I might encounter.
As I wrote in this article, I found that by reading more and more about OBEs, especially the work of Robert Monroe, my OBEs happened more frequently. At one point I was having several a week.
So it seems the best way to create this experience is to keep your mind on it, always thinking about it, always being aware of your own existence. With enough persistence it will happen.