An optimizing IS-LM framework with endogenous investment - Casares, Miguel (NBER working paper series, 2000)