In my family (n=basically_none), it seems that myopia correlates strongly with habits. The most bookish, indoors-y kids ended up in glasses - and the more so, the thicker the glasses - while folks who spent their childhoods running around outside tend to have 20/20 vision.
Assuming such an effect really exists, I expect it would be very difficult to statistically distinguish from straight heredity. Kids' early childhood habits tend to reflect family culture.
OTOH, perhaps those who are starting to have myopia aren't going to want to do outdoorsy things because they tend to require far-seeing. If I can't see what's going on far away, I'm not going to have a fun time with most sports, and I'd rather read a book.
The other hypothesis I've heard is that it's switching back and forth between focusing on close-up things and distant things. Which you naturally do a lot when engaging in outdoor activities, but basically not at all when staring at books or screens.
Assuming such an effect really exists, I expect it would be very difficult to statistically distinguish from straight heredity. Kids' early childhood habits tend to reflect family culture.