NEW YORK — U.S. stocks dipped Wednesday as investors worried about weak retail sales and oil prices sank. The Federal Reserve raised interest rates for the third time in six months.

The Commerce Department said retail spending decreased in May, which surprised experts. Investors reacted by buying traditionally safe assets like government bonds and high-dividend companies while selling stocks from other industries that depend more on economic growth. Bond yields hit their lowest level of 2017. Oil prices also hit an annual low after the government’s weekly report on oil stockpiles.

In the last few weeks Wall Street has been disappointed by several economic reports. That did not appear to change the Fed’s thinking even though higher interest rates tend to slow down economic growth. For years investors have been hoping growth will hit a faster pace.

“This economy has always been something of a healthy tortoise,” said David Kelly, chief global strategist at JPMorgan Asset Management. “I think growth will pick up a bit, but there is sort of a failure to bounce in this economy.”

The Standard & Poor’s 500 index slid 2.43 points, or 0.1 percent, to 2,437.92. The Dow Jones industrial average rose 46.09 points, or 0.2 percent, to a record 21,374.56. Home Depot and Goldman Sachs contributed most of the blue-chip index’s gain. After a late tumble in technology stocks, the Nasdaq composite lost 25.48 points, or 0.4 percent, to 6,194.89.

Small-company stocks fell more than the rest of the market. The Russell 2000 index sank 8.41 points, or 0.6 percent, to 1,417.57. That suggests investors are worried about the economy, which could have an outsize effect on smaller, domestically-focused companies.

The Federal Reserve raised interest rates for the third time since December, something investors widely expected based on the Fed’s recent statements. Fed leaders suggested they still expect to raise rates again later in the year.

The Commerce Department said people spent less money at gas stations, department stores and electronics retailers last month. Video game seller GameStop gave up 35 cents, or 1.6 percent, to $21.55 and department store chain Kohl’s dropped 38 cents, or 1 percent, to $37.66.

In a separate report, the Labor Department said consumer prices slipped, partly because of lower energy prices. That’s one reason there has been little inflation in the economy lately, a continued concern for Federal Reserve policymakers.

Only subscribers are eligible to post comments. Please subscribe or to participate in the conversation. Here’s why.

Use the form below to reset your password. When you've submitted your account email, we will send an email with a reset code.