Prominent psychologists Sigmund Freud and Mary Ainsworth conducted research on this theory, and they both proposed that an infant's need to be close to a caregiver had a direct impact on his or her development.
According to the teachings of Sigmund Freud and why do we dream at night, there are some reasons for dreaming that he proposed, as well modern psychology teachings about the unconscious mind.
In the early twentieth century, many doctors influenced by Freud thought that tics were caused by hysteria or other emotional problems, and treated them with psychoanalysis.
Sigmund Freud considered dreams to be "output" processing in that they delved into subconscious desires and uncovered hidden desire, as an output.
If you learn about Sigmund Freud and why do we dream, you'll find there are some theories that he developed about the function of dreams.