How the major stock indexes fared Thursday

Stocks closed modestly higher Thursday after a handful of decent corporate earnings reports were enough to break a weeklong slump in the market.

Procter & Gamble was the biggest gainer in the Dow after the consumer products company, whose products include Tide, Gillette and Charmin, reported earnings that beat analysts' expectations.

The Dow Jones industrial average gained 26.34 points, or 0.2 percent, to 13,103.68

The Standard & Poor's 500 rose 4.22 points, or 0.3 percent, to 1,412.97.

The Nasdaq composite index rose 4.42 points, or 0.2 percent, to 2,986.12.

For the week:

The Dow is down 239.83 points, or 1.8 percent.

The S&P 500 is down 20.22 points, or 1.4 percent.

The Nasdaq is down 19.50 points, or 0.7 percent.

For the year:

The Dow is up 886.12 points, or 7.3 percent.

The S&P 500 is up 155.37 points, or 12.4 percent.

The Nasdaq is up 380.97 points, or 14.6 percent.