Sales of new vehicles in the U.S. rose slightly in 2018, defying predictions and highlighting a strong economy.

Automakers reported an increase of 0.3 percent over a year ago to 17.27 million vehicles.

The increase came despite rising interest rates, a volatile stock market, and rising car and truck prices that pushed some buyers out of the new-vehicle market.

Industry analysts and automakers said strong economic fundamentals pushed up sales and should keep them near historic highs in 2019.

"Economic conditions in the U.S. are favorable and should continue to be supportive of vehicle sales at or around their current run rate," Ford Chief Economist Emily Kolinski Morris said after the company and other automakers announced their sales numbers Thursday.

That auto sales remain near the 2016 record of 17.55 million is a testimonial to the strength of the economy, said Mark Zandi, chief economist at Moody's Analytics. The job market, he said, has created new employment, and wage growth has accelerated.

"That's fundamental to selling anything," he said. "If there are lots of jobs and people are getting bigger paychecks, they will buy more."

The unemployment rate is 3.7 percent, a 49-year low. The economy is thought to have grown close to 3 percent last year, its best performance in more than a decade. Consumers, the main driver of the economy, are spending freely. The Federal Reserve raised its key interest rate four times in 2018 but is only expected to raise it twice this year.

Auto sales also were helped by low gasoline prices and rising home values, Zandi said.

It all means that people are likely to keep buying new vehicles this year even as they grow more expensive. The Edmunds.com auto-pricing site estimates that the average new vehicle price hit a record $35,957 in December, about 2 percent higher than the previous year.

It will be harder for automakers to keep the sales pace above 17 million because they have been enticing buyers for several years now with low-interest financing and other incentives, Zandi said. He predicts more deals in the coming year as job growth slows and credit tightens for higher-risk buyers.

Edmunds, which provides content, including automotive tips and reviews, for distribution by The Associated Press, predicts that sales will drop this year to 16.9 million. Senior Analyst Jessica Caldwell says leases will expire on over 4 million vehicles, putting more people into the market for new vehicles but also adding an abundant supply of late-model used vehicles. It's too early to tell if more people will opt for used cars, trucks and SUVs, she said.

"They may be priced out of the market," she said. "Interest rates and purchase prices are higher."

Auto interest rates averaged around 5.6 percent last year, up from 4.8 percent in 2017, she said.

The massive shift from cars to trucks and SUVs continued last year. Cars made up only 32 percent of sales, while trucks and SUVs were 68 percent.

Here's how major automakers fared in sales last year compared with 2017:

— General Motors, down 1.6 percent to 2,954,037. The company passed 200,000 in U.S. sales of electric vehicles last quarter, meaning its federal electric vehicle tax credit will start to expire. The full credit will be available through March and will gradually be phased out by March 31, 2020.

— Ford, down 3.5 percent to 2,497,318. F-Series pickup sales rose 1.4 percent to 909,330, and it remained the top-selling vehicle in the U.S.

— Toyota, down 0.3 percent to 2,426,672. The RAV4 compact SUV was the top-selling U.S. vehicle that isn't a pickup truck. Sales rose 4.8 percent to 427,170.

— Fiat Chrysler, up 8.5 percent to 2,235,204. The Jeep brand posted a record year with sales of 973,227, up 17 percent.

— Honda, down 2.2 percent to 1,604,828.

— Nissan, down 6.2 percent to 1,493,877.

— Subaru, up 5 percent to a record of 680,135.

— Hyundai, down 1.1 percent to 677,946.

— Kia, flat at 589,673.

— Volkswagen, up 4.2 percent to 354,064.

____

Economics Writer Paul Wiseman in Washington, D.C., contributed to this report.