Voters casting midterm election ballots in Indiana are divided over the state of the nation, according to a wide-ranging survey of the American electorate.

As voters cast ballots for U.S. Senate and members of Congress in Tuesday's elections, AP VoteCast found that 52 percent of Indiana voters said the country is on the right track, compared with 47 percent who said the country is headed in the wrong direction.

Here's a snapshot of who voted and why in Indiana, based on preliminary results from AP VoteCast, an innovative nationwide survey of about 139,000 voters and nonvoters _ including 3,938 voters and 765 nonvoters in the state of Indiana _ conducted for The Associated Press by NORC at the University of Chicago.

RACE FOR SENATE

In the race for Senate, Democrat Joe Donnelly had an apparent advantage over Republican Mike Braun among voters under 45; on the other hand, those ages 45 and older were more likely to support Braun.

Voters with a college education were split between Donnelly and Braun. By contrast, voters without a college degree appeared to prefer Braun.

TOP ISSUES

Voters considered several issues to be important to their vote in this midterm election, including health care (27 percent), immigration (25 percent), the economy (21 percent), terrorism (6 percent) and gun policy (6 percent).

STATE OF THE ECONOMY

Voters have a positive view of the nation's current economic outlook _ 74 percent said the nation's economy is good, compared with 25 percent who said it's not good.

TRUMP FACTOR

For 34 percent of Indiana voters, President Donald Trump was not a factor they considered while casting their votes. By comparison, 35 percent said a reason for their vote was to express support for Trump, and 31 percent said they voted to express opposition to Trump.

A majority of voters in Indiana had positive views of Trump: 56 percent said they approve of how he is handling his job as president, while 44 percent said they disapprove of Trump.

CONTROL OF CONGRESS

Tuesday's elections will determine control of Congress in the final two years of Trump's first term in office, and 70 percent of Indiana voters said which party will hold control was very important as they considered their vote. Another 20 percent said it was somewhat important.

STAYING AT HOME

In Indiana, 71 percent of registered voters who chose not to vote in the midterm election were younger than 45. A wide share of those who did not vote _ 84 percent _ did not have a college degree. About as many nonvoters were Democrats (24 percent) as Republicans (37 percent).

AP VoteCast is a survey of the American electorate in all 50 states conducted by NORC at the University of Chicago for The Associated Press and Fox News. The survey of 3,938 voters and 765 nonvoters in Indiana was conducted Oct. 29 to Nov. 6, concluding as polls close on Election Day. It combines interviews in English or Spanish with a random sample of registered voters drawn from state voter files and self-identified registered voters selected from opt-in online panels. Participants in the probability-based portion of the survey were contacted by phone and mail, and had the opportunity to take the survey by phone or online. The margin of sampling error for voters is estimated to be plus or minus 2.1 percentage points. All surveys are subject to multiple sources of error, including from sampling, question wording and order, and nonresponse. Find more details about AP VoteCast's methodology at http://www.ap.org/votecast.

AP created this story automatically using data from NORC.

Online:

For AP's complete coverage of the U.S. midterm elections: http://apne.ws/APPolitics

Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed without permission.