Does the nation's economy do better when a Republican or a Democrat is in the Oval Office?

In a recent campaign stop in Sacramento, Calif., Hillary Clinton declared that Democrats have the magic touch. "It is a fact that the economy does better when we have a Democrat in the White House," Clinton said on June 5, speaking at Sacramento City College during her final push in the California primary.

It's similar to a statement the likely Democratic presidential nominee made on March 21 in Phoenix, when she said: "The economy always does better when there's a Democrat in the White House."

PolitiFact Arizona checked out that claim and rated it Half True.

The Clintons love these comparisons, by the way. In 2015, PolitiFact ruled Mostly True claims from Hillary Clinton that "Under Republicans, recessions happen four times as frequently as under Democrats" and that "The stock market does better when you have a Democratic president in the White House." At the 2012 Democratic National Convention, former President Bill Clinton had this statement rated True: "Since 1961 … our private economy has produced 66 million private-sector jobs. So what's the jobs score? Republicans 24 million, Democrats 42 [million]."

The score, however, isn't as good for this latest Clinton claim.

Clinton's Arizona spokesman, Tim Hogan, pointed us to a July 2014 study on the topic from Princeton University economists Alan Blinder and Mark Watson. The study concludes that Democratic presidents do have more growth in gross domestic product (GDP) than Republicans, according to quarterly GDP data dating to 1947, when the data were first tracked.

However, the economists point out that there are other factors, such as better oil prices and international conditions, that could be driving these better numbers for Democratic presidents. In short, Democrats occupying the Oval Office tend to have a little better luck.

Experts we spoke with largely held the same views.

Harvard University government Prof. Jeffrey Frankel said the statistics, from GDP to the unemployment rate, are striking, but he noted that the president does not have "all that control."

"That doesn't prove what the cause is," Frankel said.

Christian Weller, a public policy professor at the University of Massachusetts Boston, did his own math on the GDP data since 1947.

He found that the economy, through the last quarter of 2015 and after inflation, grew 3.8 percent under Democrats and 2.4 percent under Republicans.

For President Obama, the growth rate in his first term was 1.8 percent. His current growth rate is 2 percent, but that's still higher than his predecessor, George W. Bush. And his second term hasn't ended yet.

Based on estimates, Weller said Obama should hit the 2.4 percent Republican average. Still, Ronald Reagan's 3.4 percent growth rate is well ahead of the economy right now under Obama.

"Other than Obama, every Democrat had a faster growth rate; even [Jimmy] Carter had a slightly higher growth rate than Reagan," Weller said. "This is one of the safest talking points for a Democratic contender."

However, the asterisks bother Arizona State University presidential historian Brooks Simpson.

"Secretary Clinton is not exactly telling the whole truth,' " Simpson said.

Simpson referenced Bill Clinton's administration, noting that he benefited from some of the economic policies of his predecessor, Republican George H.W. Bush. A 2011 report from the right-leaning Heritage Foundation noted that the economy was already in its "22nd month of expansion" when Bill Clinton took office in January 1993.

We asked the Clinton campaign for a response. A spokesman pointed PolitiFact California to previous fact checks on the topic, including PolitiFact Arizona's. The spokesman also pointed to a Washington Post blog post that says Clinton was right on the numbers but questions whether Democrats were responsible for the better economic times or "just got lucky."

Our ruling

Hillary Clinton said: "It is a fact that the economy does better when we have a Democrat in the White House." It's similar to her March statement that "the economy always does better when there's a Democrat in the White House."

Yes, Democratic presidents do have more growth in gross domestic product than Republicans, according to quarterly GDP data dating to 1947.

But Clinton's comments require several caveats. The current growth in the economy under Obama is lower than the Republican average. Factors such as oil prices also reflect the higher GDP growth under Democratic presidents. On top of that, comparing one period of time to another or one president to another can be problematic.

We agree with PolitiFact Arizona's findings and rate Clinton's claim in Sacramento Half True.

PolitiFact.com is a project operated by the Tampa Bay Times, in which reporters and editors from the Times and affiliated media outlets "fact-check statements by members of Congress, the White House, lobbyists and interest groups." The Star Tribune opinion pages periodically republish these reports.