Stocks ended the day mixed on the first day of trading in the New Year. The stock market gave up early gains after a report showed that growth in factory output fell to its slowest pace in six months in December, weakened by declines in orders and production.

On Friday:

The Dow Jones industrial average rose 9.92 points, or 0.06 percent, to 17,832.99.

The Standard & Poor's 500 index lost 0.70 points, or 0.03 percent, to 2,058.20.

The Nasdaq composite fell 9.24 points, or 0.2 percent, to 4,726.81.

For the week:

The Dow is down 220.72 points, or 1.2 percent.

The S&P 500 is down 30.57 points, or 1.5 percent.

The Nasdaq composite is down 80.05 points, or 1.7 percent.