I’ll agree with LifeOnWry on the statement that magic/prayer is all about creating a desired outcome, regardless of method. Magic is different everywhere and with everyone, but in some ways, it can be related to anthropology. In fact, there are plenty of anthropologists who’ve dealt with magic in the practices of the culture they’ve studied. Personally, I’d say that performing some forms of magic follows a similar pattern to the steps that are part of rites of passage in anthropological theory. I’ll go through an example in detail so it makes a little more sense.
[ul]
[li]Separation: In the case of a magic ritual, this is the process of separating from the mundane world and making contact with the spirit world. This can and often includes a cleansing ritual in preparation for dealing with supernatural beings (and sometimes a trance state).[/li][li]Liminal state: To quote a definition I was able to Google that serves the purpose of my explanation*, liminality is “The state of being on a threshold in space or time.” Okay, so in this sense, this is the place and time (and physical state in the case of trance) in which magic (or trance-style divination) occurs. A spell is cast in this space; sacred space is sometimes formed, but not always. The spell or prayers or contact with spirits/the gods is made within this time and space, and the connection with this power and these spirits/deities is closed in this space as well. [/li][li]Reintegration: After closing contact with the spirit world, one has to “come down” from the experience, and this is done through a process of “grounding.” There are lots of ways to do this, and I’m not going to get into any of this, as I am not trying to make this a formula, but an example. The body and the mind reemerge from the ritual ready to deal with the mundane world, and the contact with the spirit world is closed for the time being. If what is done works out, the indended outcome happens. If not, well, there’s lots of theories and reasons as to why it didn’t happen, and it’s all situationally dependent.[/li][/ul]
Interestingly enough, I had a professor in college who saw some fascinating things related to magic while studying the Sisala in Ghana. One of them, which he published an article on, is an occurrence where the dead was raised. If I still had that article, I’d cite it, but I don’t think it’s going to be something found on the internet.
*A lot of the others were a bit too strict within the bounds of traditional anthropological theory and social structure. A bit too off-topic, and would end up being distracting. Google’s results are here; feel free to look around further if the definition I chose isn’t clear enough.