Dr. Leventhal's remarks were part of a sworn statement made on April 20 and entered into evidence in Mr. Allen's lawsuit to gain custody of Dylan and the couple's two other children. A transcript of the statement was made public yesterday, after editing by both sides to remove some of the most sensitive material.

The custody trial will conclude this week, with closing arguments beginning today.

Dr. Leventhal headed the hospital team that was asked by the Connecticut State Police to investigate the claim that Mr. Allen molested Dylan last August at Miss Farrow's summer home in Connecticut. The team told Mr. Allen and Miss Farrow on March 18 that it had concluded that Dylan was not molested, but the transcript gives the first look at the thinking behind that finding.

Dylan's statements in interviews at the hospital contradicted each other and the story she told on a videotape made by Miss Farrow, Dr. Leventhal said. "Those were not minor inconsistencies," he said. "She told us initially that she hadn't been touched in the vaginal area, and she then told us that she had, then she told us that she hadn't." 'Intense Relationship'

The doctor suggested a connection between Miss Farrow's outrage over Mr. Allen's affair with her adopted daughter, Soon-Yi Farrow Previn, and the accusation made by Dylan, who he said was unusually protective of her mother. "It's quite possible -- as a matter of fact, we think it's medically probable -- that she stuck to that story over time because of the intense relationship she had with her mother," he said.

Even before the claim of abuse was made last August, he said, "The view of Mr. Allen as an evil and awful and terrible man permeated the household. The view that he had molested Soon-Yi and was a potential molester of Dylan permeated the household."