U.S. stocks finished mostly higher Friday to wrap up a subdued week, and technology companies did most of the heavy lifting. Investors were also pleased to see that shoppers spent more money in September.

On Friday:

The Standard & Poor’s 500 index rose 2.24 points, or 0.1 percent, to 2,553.17.

The Dow Jones industrial average edged up 30.71 points, or 0.1 percent, to 22,871.72.

The Nasdaq composite advanced 14.29 points, or 0.2 percent, to 6,605.80.

The Russell 2000 index of smaller-company stocks declined 2.51 points, or 0.2 percent, to 1,502.66.

For the week:

The S&P 500 gained 3.84 points, or 0.2 percent.

The Dow added 98.05 points, or 0.4 percent.

The Nasdaq climbed 15.62 points, or 0.2 percent.

The Russell 2000 is down 7.56 points, or 0.5 percent.

For the year:

The S&P 500 is up 314.34 points, or 14 percent.

The Dow is up 3,109.12 points, or 15.7 percent.

The Nasdaq is up 1,222.68 points, or 22.7 percent.

The Russell 2000 is up 145.53 points, or 10.7 percent