By Jason Weinstein.

Binghamton University is the top-rated public university in New York, and 20th best in the nation.

This according to a new survey from Buffalo Business First, which used a 20-part formula to create it's rankings. Schools were ranked highly for having selective admission processes, strong retention and graduation rates, and a diverse campus.

SUNY Stony Brook ranked second in the state and 27th in the nation, according to Buffalo Business First.