U.S. stocks edged higher Thursday as investors assessed some mixed news on company earnings. Energy stocks rose as oil recouped some of its losses from a big sell-off a day earlier.

On Thursday:

The Dow Jones industrial average rose 56.22 points, or 0.3 percent, to 17,958.73.

The Standard & Poor's 500 index climbed 9.28 points, or 0.5 percent, to 2,091.18.

The Nasdaq composite gained 23.74 points, or 0.5 percent, to 4,974.56.

For the week:

The Dow is up 195.49 points, or 1.1 percent.

The S&P 500 is up 24.22 points, or 1.2 percent.

The Nasdaq has gained 87.63 points, or 1.8 percent.

For the year:

The Dow is up 135.66 points, or 0.8 percent.

The S&P 500 index is up 32.28 points, or 1.6 percent.

The Nasdaq is up 238.51 points, or 5 percent.