A national study by WalletHub names New York as the safest state for teen drivers.

The study uses 16 metrics within three categories — safety conditions, economic environment and safety laws — to rank the best and worst states. WalletHub ranked New York first overall and in the category of safety laws for its strict driving laws pertaining to texting and driving and impaired driving.

For the category of safety conditions, which includes number of teen drivers, safety of roads and teen driver fatalities, New York ranks second. New York ranks seventh for economic environment, which uses data points such as cost of repairs, penalties for tickets and insurance premium increases.

WalletHub’s study uses data from the U.S. Census Bureau, the National Highway Traffic Safety Administration, the Federal Highway Administration, the Federal Bureau of Investigation, Advocates for Highway and Auto Safety, TRIP, CarMD, InsuranceQuotes.com and the Governors Highway Safety Association.