Productivity rises with educational attainment and with investment rate