She did write her autobiography, "Call Me Anna", which details her life and struggles with mental illness. It was published in 1988. She also co-authored another book, "A Brilliant Madness" with her son Sean Astin, which focused on their family's experiences with mental health issues.
It's possible you might be thinking of a different author, or perhaps confusing Patty Duke with another prominent figure in the literary world. If you could provide more context, I might be able to help you find the author you're looking for.