New research suggests legalizing recreational marijuana for U.S. adults in some states may have slightly reduced teens' odds of using pot.

One reason may be that it's harder and costlier for teens to buy marijuana from licensed dispensaries than from dealers, said lead author Mark Anderson, a health economist at Montana State University.

The researchers analyzed national youth health and behavior surveys from 1993 through 2017 that included questions about marijuana use. Responses from 1.4 million high school students were included.

Thirty-three states have passed medical marijuana laws and 11 have legalized recreational use — generally for ages 21 and up, many during the study years. The researchers looked at overall changes nationwide, but not at individual states.

There was no change linked with medical marijuana legislation but odds of teen use declined almost 10 percent after recreational marijuana laws were enacted.

The study was published Monday in JAMA Pediatrics.

Previous research has found no effect on teen use from medical marijuana laws, and conflicting results from recreational marijuana laws. The new results echo a study showing a decline in teen use after sales of recreational pot began in 2014 in Washington state.

The results "should help to quell some concerns that use among teens will actually go up. This is an important piece when weighing the costs and benefits of legalization," Anderson said.

About 20 percent of U.S. high school students use marijuana, unchanged since 2015 after an earlier decline, according to the 2017 version of the surveys used in the study. Rates ranged from 13 percent of 9th graders to 26 percent of high school seniors, according to the survey data from the federal Centers for Disease Control and Prevention.

"Repeated marijuana use during adolescence may lead to long-lasting changes in brain function," authors of the new study wrote. In the short-term, it can cause impaired memory and attention problems lasting weeks. Frequent use starting in the early teens may lower IQ scores; some kids may be more vulnerable to pots' effects because of genetics or other factors.

FOLLOW NBC HEALTH ON TWITTER & FACEBOOK