The self-consistent theory of Singwi, Tosi, Land and Sjolander (STLS), which accounts for exchange and short-range correlation effects through an effective potential depending on the structure factor, is generalized to the Visscher and Falicov model of the layered electron gas. The complete numerical solution of the STLS self-consistent equations provides information about intraplane and inter...