The U.S. yield curve inverted last week for the first time since 2006, a move that is historically a signal of recession. In fact, the past seven times the yield curve inverted for the 3-month and 10-year Treasurys, aside from a two-week inversion in 1998, the U.S. economy fell into a recession every time within the next 15 months, according to Credit Suisse.

Stocks may still have a bit more room to run until they take a hit. Six months after the yield curve inverts is typically when stocks peak.

If you’re feeling nervous, where should you put your money?

Some sectors perform better than others and, according to CNBC, three months after the inversion, insurance and industrial stocks tend to do the best, while defensive stocks tend to outperform 12 months after.

Per CNBC:

“Historically investors have often tried to come up with reasons for why things are different this time around and have often been proven wrong,” Credit Suisse research analyst Andrew Garthwaite said in a note to clients Tuesday.

Stocks may still have a bit more room to run until they take a hit. Six months after the yield curve inverts is typically when stocks peak, Garthwaite said. During the three months after an inversion, the S&P 500 rose by an average 4 percent, and was up 75 percent of the time. But on a longer time horizon — 18 months out — the S&P was down an average 8 percent, and up only 38 percent of the time.

Still, certain sectors do better than others in that environment. In the first three months after the inversion, insurance and industrial stocks show the strongest median out-performance. Semiconductors and consumer durables are historically the biggest laggards.

One year after the yield curve inverts, though, there’s a more definite split. Defensive stocks like healthcare equipment, pharmaceuticals and insurance historically outperform in the 12 months after the yield curve inverts. A defensive stock is something that has constant demand for products and isn’t typically correlated to the rest of the business cycle. They tend to kick back a consistent dividend and relatively stable earnings regardless of stock market conditions.

More “cyclical” stocks, which do rely on market conditions, tend to underperform, according to Credit Suisse. Autos and technology hardware are among the laggards 12 months after the yield curve inverts.

yield curve inversion recession