As seen in VALIS and the Exegesis, PKD was almost literally living in one of his own stories later in life.