Both Ibsen's A Doll's House and Gilman's "The Yellow Wallpaper" were groundbreaking treatments of women's rights in their time. More specifically, each deals with the role of the wife in relation to her husband.
Both husbands, John and Torvald, treat their wives like children. As a result, their wives end up undermining their husbands' authority.
Gilman's anonymous narrator resists John's instructions to rest. Instead, she continues journaling about her experiences, but she does so secretively. It is a quiet resistance, but a resistance that keeps the madness at bay. Unfortunately, even after journaling about her desire for freedom, she ultimately falls prey to insanity. She has not gained independence from her illness nor from her husband.
Nora, on the other hand, succeeds in gaining independence. Like the anonymous narrator, she resists her husband, but the end result is different. Nora recognizes her husband's dedication to patronizing her and his unwillingness to acknowledge her sacrifice. Unhindered by mental illness, she decides to leave him. She escapes the "doll's house." Gilman's narrator, however, does not.