A Scanner Darkly is probably the most autobiographical of Dick's works, unless you count the full on crazy VALIS phase at the end of his life. The fucked up druggie paranoia/pseudo camaraderie fighting off fascist treatment programs was how he spent his life in the 70s. Damn I miss him.